git: lib/libhammer: fix minor memory leaks

Antonio Huete Jimenez tuxillo at
Tue Jan 27 14:41:02 PST 2015

commit 42cb3c2bf0fa85ea16d4d4862002aa97aed7642b
Author: Tomohiro Kusumi <kusumi.tomohiro at>
Date:   Sun Jan 25 22:38:50 2015 +0900

    lib/libhammer: fix minor memory leaks
    This patch fixes minor memory leaks of libhammer.
    hunk1: This isn't necessary since it never gets here.
           _libhammer_malloc() exit(1) if it failed to calloc().
    hunk2: Add missing close(fd).
    hunk3: Add missing free(mntbuf).

Summary of changes:
 lib/libhammer/misc.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list