Project

General

Profile

Actions

Submit #2778

closed

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

Added by tkusumi over 9 years ago. Updated over 9 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 #1

Updated by tuxillo over 9 years ago

  • Status changed from New to Closed
  • Assignee set to tuxillo
  • Target version set to 4.2

Hi,

All pushed to master. Thanks!

Cheers,
Antonio Huete

Actions

Also available in: Atom PDF