https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204943
NGie Cooper <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected], | |[email protected] --- Comment #1 from NGie Cooper <[email protected]> --- Yes, this is a leak. This should fix it: $ svn diff sbin/newfs_msdos/mkfs_msdos.c Index: sbin/newfs_msdos/mkfs_msdos.c =================================================================== --- sbin/newfs_msdos/mkfs_msdos.c (revision 291608) +++ sbin/newfs_msdos/mkfs_msdos.c (working copy) @@ -583,6 +583,7 @@ si_sa.sa_handler = infohandler; if (sigaction(SIGINFO, &si_sa, NULL) == -1) { warn("sigaction SIGINFO"); + free(img); return -1; } for (lsn = 0; lsn < dir + (fat == 32 ? bpb.bpbSecPerClust : rds); lsn++) { -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "[email protected]"
