svn commit: r327273 - head/sbin/fsdb

Warner Losh imp at FreeBSD.org
Thu Dec 28 05:34:12 UTC 2017


Author: imp
Date: Thu Dec 28 05:34:08 2017
New Revision: 327273
URL: https://svnweb.freebsd.org/changeset/base/327273

Log:
  Plug memory leak by freeing wantedblk{32,64}.
  
  CID: 273655, 273656

Modified:
  head/sbin/fsdb/fsdb.c

Modified: head/sbin/fsdb/fsdb.c
==============================================================================
--- head/sbin/fsdb/fsdb.c	Thu Dec 28 05:34:04 2017	(r327272)
+++ head/sbin/fsdb/fsdb.c	Thu Dec 28 05:34:08 2017	(r327273)
@@ -565,6 +565,8 @@ CMDFUNCSTART(findblk)
 end:
     curinum = ocurrent;
     curinode = ginode(curinum);
+    free(wantedblk32);
+    free(wantedblk64);
     return 0;
 }
 


More information about the svn-src-all mailing list