Remove free'ing of an uninitialized variable
Just remove it completely from the test as it's initialized but unused apart from the free(3) call Differential Revision: https://reviews.freebsd.org/D4769 (part of larger diff) MFC after: 5 days Reported by: cppcheck Reviewed by: oshogbo Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
e324a485ff
commit
ff9e83788d
@ -1101,7 +1101,6 @@ ATF_TEST_CASE_BODY(nvlist_nvlist_array__pack)
|
||||
{
|
||||
nvlist_t *testnvl[8], *unpacked;
|
||||
const nvlist_t * const *const_result;
|
||||
nvlist_t **result;
|
||||
nvlist_t *nvl;
|
||||
size_t num_items, packed_size;
|
||||
unsigned int i;
|
||||
@ -1159,7 +1158,6 @@ ATF_TEST_CASE_BODY(nvlist_nvlist_array__pack)
|
||||
|
||||
for (i = 0; i < nitems(testnvl); i++)
|
||||
nvlist_destroy(testnvl[i]);
|
||||
free(result);
|
||||
nvlist_destroy(nvl);
|
||||
nvlist_destroy(unpacked);
|
||||
free(packed);
|
||||
|
Loading…
Reference in New Issue
Block a user