[DragonFlyBSD - Submit #2778] (New) [PATCH 0/3] lib/libhammer: fix minor memory leaks and cleanups

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Sun Jan 25 07:01:32 PST 2015


Issue #2778 has been reported by tkusumi.

----------------------------------------
Submit #2778: [PATCH 0/3] lib/libhammer: fix minor memory leaks and cleanups
http://bugs.dragonflybsd.org/issues/2778

* Author: tkusumi
* Status: New
* Priority: Normal
* Assignee: 
* Category: Userland
* Target version: 
----------------------------------------
These series of patches for libhammer do the followings.

---
From: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date: Sun, 25 Jan 2015 22:38:50 +0900
Subject: [PATCH 1/3] 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).

---
From: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date: Sun, 25 Jan 2015 22:41:59 +0900
Subject: [PATCH 2/3] lib/libhammer: cleanups

This patch has some minor cleanups of libhammer.

hunk1: Remove parentheses
hunk2: Remove parentheses
hunk3: Remove forward declaration of obsolete function.
       find_pfs_mount() was re-implemented as a part of libhammer
       and commit 4f09feab replaces it with libhammer version.

---
From: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date: Sun, 25 Jan 2015 23:13:04 +0900
Subject: [PATCH 3/3] lib/libhammer: cleanups

Using pointer dereference instead of several mntbuf[curmount].f_xxx
makes code clear and also makes lines fit within 80 characters.


---Files--------------------------------
0001-lib-libhammer-fix-minor-memory-leaks.patch (1.36 KB)
0002-lib-libhammer-cleanups.patch (1.71 KB)
0003-lib-libhammer-cleanups.patch (1.9 KB)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Submit mailing list