Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/fsck_lfs PR/51478: Jose Luis Rodriguez Garcia: Fix leak...
details: https://anonhg.NetBSD.org/src/rev/67e8d6a4c773
branches: trunk
changeset: 347778:67e8d6a4c773
user: christos <christos%NetBSD.org@localhost>
date: Fri Sep 16 11:13:47 2016 +0000
description:
PR/51478: Jose Luis Rodriguez Garcia: Fix leak mem fsck_lfs/lfs.c
diffstat:
sbin/fsck_lfs/lfs.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r 95faed9a9fa2 -r 67e8d6a4c773 sbin/fsck_lfs/lfs.c
--- a/sbin/fsck_lfs/lfs.c Fri Sep 16 10:59:28 2016 +0000
+++ b/sbin/fsck_lfs/lfs.c Fri Sep 16 11:13:47 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs.c,v 1.71 2016/03/20 04:24:46 dholland Exp $ */
+/* $NetBSD: lfs.c,v 1.72 2016/09/16 11:13:47 christos Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -376,6 +376,8 @@
dip = lfs_ifind(fs, ino, bp);
if (dip == NULL) {
brelse(bp, 0);
+ free(ip->i_din);
+ free(ip->inode_ext.lfs);
free(ip);
free(vp);
return NULL;
Home |
Main Index |
Thread Index |
Old Index