Free 'value' only once we are done freeing all individual
Submitted by: pjd@ MFC after: 1 month Found by: scan-build Sponsored by: Wheel Systems
This commit is contained in:
parent
657db16fce
commit
0a5f83e3fa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=323856
@ -1727,8 +1727,8 @@ nvpair_move_nvlist_array(const char *name, nvlist_t **value, size_t nitems)
|
||||
nvlist_get_pararr(value[ii], NULL) != NULL) {
|
||||
nvlist_destroy(value[ii]);
|
||||
}
|
||||
nv_free(value);
|
||||
}
|
||||
nv_free(value);
|
||||
ERRNO_RESTORE();
|
||||
} else {
|
||||
for (ii = 0; ii < nitems; ii++)
|
||||
|
Loading…
Reference in New Issue
Block a user