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;
 }
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to