Project

General

Profile

Actions

Submit #2778

closed

[PATCH 0/3] lib/libhammer: fix minor memory leaks and cleanups

Added by tkusumi almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Userland
Target version:
Start date:
01/25/2015
Due date:
% Done:

0%

Estimated time:

Description

These series of patches for libhammer do the followings.

---
From: Tomohiro Kusumi <>
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 <>
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 <>
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

Actions

Also available in: Atom PDF