aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsdb
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-12-28 05:34:08 +0000
committerWarner Losh <imp@FreeBSD.org>2017-12-28 05:34:08 +0000
commit0bebba31d307a781e0d3d51d87807fb410da5c5c (patch)
tree3010fd82fd71d3f9aaaadb0f3004e8ced75c41cf /sbin/fsdb
parent7790c87b7150bb81435317e3ff07292e46a3fc13 (diff)
downloadsrc-0bebba31d307a781e0d3d51d87807fb410da5c5c.tar.gz
src-0bebba31d307a781e0d3d51d87807fb410da5c5c.zip
Plug memory leak by freeing wantedblk{32,64}.
CID: 273655, 273656
Notes
Notes: svn path=/head/; revision=327273
Diffstat (limited to 'sbin/fsdb')
-rw-r--r--sbin/fsdb/fsdb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/fsdb/fsdb.c b/sbin/fsdb/fsdb.c
index a7dbfcb690c9..e815c32b9413 100644
--- a/sbin/fsdb/fsdb.c
+++ b/sbin/fsdb/fsdb.c
@@ -565,6 +565,8 @@ CMDFUNCSTART(findblk)
end:
curinum = ocurrent;
curinode = ginode(curinum);
+ free(wantedblk32);
+ free(wantedblk64);
return 0;
}