HomeFreeBSD

route6d(8): Fix potential double-free

Description

route6d(8): Fix potential double-free

In the case that the subsequent sysctl(3) call failed, 'buf' could be free(3)ed
repeatedly. It isn't clear to me that that case is possible, but be clear and
do the right thing in case it is.

Reported by: Coverity
CID: 272537
Sponsored by: EMC / Isilon Storage Division

Details

Provenance
cemAuthored on
Parents
rS299490: camcontrol(8): Fix another trivial double-free
Branches
Unknown
Tags
Unknown