HomeFreeBSD

If any function fail (the ptr variable will be equal to NULL), we shouldn't

Description

If any function fail (the ptr variable will be equal to NULL), we shouldn't
return buffer. Instead we should free it and return NULL.

Approved by: pjd (mentor)

Details

Provenance
oshogboAuthored on
Parents
rS286645: The nvlist_move_nvpair() function can fail in two cases, if:
Branches
Unknown
Tags
Unknown