Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/librump/rumpvfs plug memory leaks (of course the fu...



details:   https://anonhg.NetBSD.org/src/rev/c8f0fc6545db
branches:  trunk
changeset: 755958:c8f0fc6545db
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Jun 30 15:40:30 2010 +0000

description:
plug memory leaks (of course the function i copypasted for the
previous commit was the only one with the leak ...)

diffstat:

 sys/rump/librump/rumpvfs/rumpfs.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r aadacc3dc248 -r c8f0fc6545db sys/rump/librump/rumpvfs/rumpfs.c
--- a/sys/rump/librump/rumpvfs/rumpfs.c Wed Jun 30 15:38:27 2010 +0000
+++ b/sys/rump/librump/rumpvfs/rumpfs.c Wed Jun 30 15:40:30 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpfs.c,v 1.58 2010/06/30 14:50:35 pooka Exp $        */
+/*     $NetBSD: rumpfs.c,v 1.59 2010/06/30 15:40:30 pooka Exp $        */
 
 /*
  * Copyright (c) 2009  Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.58 2010/06/30 14:50:35 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.59 2010/06/30 15:40:30 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -780,6 +780,7 @@
        makedir(rnd, cnp, rn);
 
  out:
+       PNBUF_PUT(cnp->cn_pnbuf);
        vput(dvp);
        return rv;
 }
@@ -812,6 +813,7 @@
        makedir(rnd, cnp, rn);
 
  out:
+       PNBUF_PUT(cnp->cn_pnbuf);
        vput(dvp);
        return rv;
 }



Home | Main Index | Thread Index | Old Index