1b135e4f ngie Dec. 31, 2016, 10:01 a.m.
r310892 was on the right track, but unfortunately it was resolving
the problem incorrectly and accidentally leaking memory in the
process.

- Call snmp_pdu_free on req before calling snmp_pdu_create on it
  at the bottom of the outer while loop
- Call snmp_pdu_free on resp after calling snmpwalk_nextpdu_create
  in the inner loop

MFC after:	12 days
X-MFC with:	r310729, r310892
Reported by:	valgrind
cgit ViewVC
00f6082b hrs Dec. 31, 2016, 9:52 a.m.
bcf52557 ngie Dec. 31, 2016, 9:43 a.m.
allocate a new one via snmp_pdu_create(..)

This fixes bsnmpwalk, so it no longer crashes after r310729

X-MFC with:	r310729
MFC after:	12 days
cgit ViewVC
7c87f23e adrian Dec. 31, 2016, 7:50 a.m.
Upcoming vht support will register send/receive action handlers.
cgit ViewVC
34694ebe hrs Dec. 31, 2016, 6:23 a.m.
the main I/O multiplex loop.  select() now watches
a pipe which is written by the new skinny signal
handlers and the received signals are handled inside
the loop sequencially.

This eliminates a complex signal mask to guarantee
async-signal safety.
cgit ViewVC
a2795311 jkim Dec. 31, 2016, 6:07 a.m.
407cd978 hrs Dec. 31, 2016, 3:07 a.m.
Reported by:	Eugene Grosbein
PR:		215335
cgit ViewVC
378f3b19 loos Dec. 31, 2016, 2:23 a.m.
Pointy hat to:	loos
MFC after:	3 days
cgit ViewVC
ab8fdacc loos Dec. 31, 2016, 2:18 a.m.
Obtained from:	pfSense
MFC after:	3 days
Sponsored by:	Rubicon Communications, LLC (Netgate)
cgit ViewVC
d6300351 bapt Dec. 30, 2016, 11:46 p.m.
MFC after:	3 days
cgit ViewVC
83739935 ngie Dec. 30, 2016, 11:44 p.m.
Set variables to NULL after calling free.

Also, remove unnecessary if (x != NULL) checks before calling free(x)

MFC after:	1 week
cgit ViewVC
d481a925 bapt Dec. 30, 2016, 11:41 p.m.
MFC after:	3 days
cgit ViewVC
739d7cfd mm Dec. 30, 2016, 11:05 p.m.
Sync libarchive with vendor.

Vendor bugfixes:
Use __LA_DEPRECATED macro with functions deprecated in 379867e (r310796)

MFC after:	2 weeks
X-MFC with:	r310866
cgit ViewVC
36dffdb4 mm Dec. 30, 2016, 11 p.m.
Vendor bugfixes:
Use __LA_DEPRECATED macro with functions deprecated in 379867e (r310796)
cgit ViewVC
09c253fd mm Dec. 30, 2016, 10:54 p.m.
Sync libarchive with vendor.

Vendor bugfixes (relevant to FreeBSD):
PR #843: Fix memory leak of struct archive_entry in cpio/cpio.c
PR #851: Spelling fixes
Fix two protoypes in manual page archive_read_disk.3

MFC after:	2 weeks
cgit ViewVC