Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Dec 2017 05:34:08 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r327273 - head/sbin/fsdb
Message-ID:  <201712280534.vBS5Y8Cw024634@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712280534.vBS5Y8Cw024634>