aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/zdb
diff options
context:
space:
mode:
authorTino Reichardt <[email protected]>2024-07-09 18:36:17 +0200
committerGitHub <[email protected]>2024-07-09 09:36:17 -0700
commit9ffe4413610ea81731462d45f81a30e709fef011 (patch)
tree65205b47c1e2e6fc9eb24e2f1cceb362f0d6bc2d /cmd/zdb
parentf72e081fbf3897cda90cf10463a1e4f25d52e257 (diff)
Fix zdb "Memory fault" found on FreeBSD ZTS (#16332)
Reason: nvlist_free() tries to free sth. which isn't allocted Solution: init this variable with NULL Closes #16311 Signed-off-by: Tino Reichardt <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Ameer Hamza <[email protected]> Reviewed-by: Tony Hutter <[email protected]>
Diffstat (limited to 'cmd/zdb')
-rw-r--r--cmd/zdb/zdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/zdb/zdb.c b/cmd/zdb/zdb.c
index 3a7ef1161..0d2f0b1da 100644
--- a/cmd/zdb/zdb.c
+++ b/cmd/zdb/zdb.c
@@ -9186,7 +9186,7 @@ main(int argc, char **argv)
char *pname = strdup(target);
const char *value;
nvlist_t *pnvl = NULL;
- nvlist_t *vnvl;
+ nvlist_t *vnvl = NULL;
if (strpbrk(pname, "/@") != NULL)
*strpbrk(pname, "/@") = '\0';