diff options
author | ngie <ngie@FreeBSD.org> | 2016-01-04 03:34:22 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-01-04 03:34:22 +0000 |
commit | ff9e83788d7ed52342dcba4dff1e62fdf3cc985c (patch) | |
tree | a78dda849543da5cdbfdab7a2aae57e729d6460a | |
parent | e324a485ff22421547461b6a53d57357b37262aa (diff) | |
download | FreeBSD-src-ff9e83788d7ed52342dcba4dff1e62fdf3cc985c.zip FreeBSD-src-ff9e83788d7ed52342dcba4dff1e62fdf3cc985c.tar.gz |
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
-rw-r--r-- | lib/libnv/tests/nv_array_tests.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/libnv/tests/nv_array_tests.cc b/lib/libnv/tests/nv_array_tests.cc index 6d42990..f6ffcef 100644 --- a/lib/libnv/tests/nv_array_tests.cc +++ b/lib/libnv/tests/nv_array_tests.cc @@ -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); |