lib/libhammer: fix minor memory leaks
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 25 Jan 2015 13:38:50 +0000 (22:38 +0900)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Tue, 27 Jan 2015 22:37:38 +0000 (23:37 +0100)
commit42cb3c2bf0fa85ea16d4d4862002aa97aed7642b
tree065fcb5630d4910309a4e84369249e5bdc59d327
parente694ed2f5d3641ba1831b8552baa80ece6bf5ee2
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).
lib/libhammer/misc.c