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:
Mariusz Zaborski 2017-09-21 10:14:43 +00:00
parent 657db16fce
commit 0a5f83e3fa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=323856

View File

@ -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++)