Author: delphij Date: Fri Dec 29 06:22:05 2017 New Revision: 327335 URL: https://svnweb.freebsd.org/changeset/base/327335
Log: The fix in r327273 turns a memory leak into freeing wild pointer. Fix this by freeing only the initialized pointer. Modified: head/sbin/fsdb/fsdb.c Modified: head/sbin/fsdb/fsdb.c ============================================================================== --- head/sbin/fsdb/fsdb.c Fri Dec 29 05:01:07 2017 (r327334) +++ head/sbin/fsdb/fsdb.c Fri Dec 29 06:22:05 2017 (r327335) @@ -565,8 +565,10 @@ CMDFUNCSTART(findblk) end: curinum = ocurrent; curinode = ginode(curinum); - free(wantedblk32); - free(wantedblk64); + if (is_ufs2) + free(wantedblk64); + else + free(wantedblk32); return 0; } _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"