Enji Cooper 75cd48a1c1 Use reallocf instead of malloc to fix leak with outbuf_pmap
The previous code overwrote outbuf_pmap's memory with malloc once per
loop iteration, which leaked its memory; use reallocf instead to ensure
that memory is properly free'd each loop iteration.

Add a outbuf_pmap = NULL in the failure case to avoid a double-free
at the bottom of the function.

Differential Revision: https://reviews.freebsd.org/D6495
MFC after: 1 week
Reported by: Coverity
CID: 1038776
Reviewed by: markj, pfgj
Sponsored by: EMC / Isilon Storage Division
2016-05-24 18:44:50 +00:00
..
2016-04-30 01:24:24 +00:00
2016-04-30 01:24:24 +00:00
2016-03-30 14:42:09 +00:00
2016-04-30 01:24:24 +00:00
2016-04-30 01:24:24 +00:00
2016-04-30 01:24:24 +00:00
2016-04-30 01:24:24 +00:00
2016-05-06 16:03:40 +00:00