Page MenuHomeFreeBSD

libpfctl: memory leak fix
ClosedPublic

Authored by kp on Jun 30 2021, 1:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 1, 1:07 PM
Unknown Object (File)
Tue, Oct 22, 2:44 AM
Unknown Object (File)
Sat, Oct 19, 10:54 PM
Unknown Object (File)
Sat, Oct 19, 10:54 PM
Unknown Object (File)
Oct 13 2024, 3:18 AM
Unknown Object (File)
Oct 8 2024, 6:50 PM
Unknown Object (File)
Oct 6 2024, 9:05 PM
Unknown Object (File)
Sep 24 2024, 10:18 PM
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.