Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/chfs fix leak. Reported by:
details: https://anonhg.NetBSD.org/src/rev/ce5c432c3b3d
branches: trunk
changeset: 806164:ce5c432c3b3d
user: christos <christos%NetBSD.org@localhost>
date: Sat Feb 07 04:21:11 2015 +0000
description:
fix leak. Reported by:
http://www.m00nbsd.net/ae123a9bae03f7dde5c6d654412daf5a.html#Report-4
diffstat:
sys/ufs/chfs/ebh.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 73847039020c -r ce5c432c3b3d sys/ufs/chfs/ebh.c
--- a/sys/ufs/chfs/ebh.c Sat Feb 07 04:19:52 2015 +0000
+++ b/sys/ufs/chfs/ebh.c Sat Feb 07 04:21:11 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ebh.c,v 1.5 2014/10/18 08:33:29 snj Exp $ */
+/* $NetBSD: ebh.c,v 1.6 2015/02/07 04:21:11 christos Exp $ */
/*-
* Copyright (c) 2010 Department of Software Engineering,
@@ -1956,8 +1956,10 @@
ebhdr = kmem_alloc(sizeof(struct chfs_eb_hdr), KM_SLEEP);
err = leb_write_lock(ebh, lnr);
- if (err)
+ if (err) {
+ kmem_free(ebhdr, sizeof(struct chfs_eb_hdr));
return err;
+ }
retry:
pebnr = get_peb(ebh);
Home |
Main Index |
Thread Index |
Old Index