Page MenuHomeFreeBSD

libpfctl: memory leak fix
ClosedPublic

Authored by kp on Jun 30 2021, 1:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 15 2024, 9:04 PM
Unknown Object (File)
Feb 8 2024, 8:43 PM
Unknown Object (File)
Dec 23 2023, 12:52 AM
Unknown Object (File)
Dec 14 2023, 10:17 PM
Unknown Object (File)
Nov 13 2023, 4:01 PM
Unknown Object (File)
Nov 12 2023, 10:44 AM
Unknown Object (File)
Nov 10 2023, 3:49 PM
Unknown Object (File)
Nov 10 2023, 6:38 AM
Subscribers

Details

Summary

We must remember to free the nvlist we create from the kernel's response
to DIOCGETSTATESNV, on every iteration.

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kp requested review of this revision.Jun 30 2021, 1:12 PM

Why does it depend on other reviews?
If it's part of an open review, please fix it there.
If not, please fix it regardless of the other changes.

Why does it depend on other reviews?
If it's part of an open review, please fix it there.
If not, please fix it regardless of the other changes.

It's a bug that was already present, but will be made more serious by D30948.
I've linked it to the other reviews because they all deal with the same code, and this patch likely won't apply without those other patches (although it could indeed be committed independently).

This revision is now accepted and ready to land.Jul 1 2021, 7:54 AM
This revision was automatically updated to reflect the committed changes.