Module Name: src Committed By: pooka Date: Wed Jun 30 15:40:31 UTC 2010
Modified Files: src/sys/rump/librump/rumpvfs: rumpfs.c Log Message: plug memory leaks (of course the function i copypasted for the previous commit was the only one with the leak ...) To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 src/sys/rump/librump/rumpvfs/rumpfs.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/rump/librump/rumpvfs/rumpfs.c diff -u src/sys/rump/librump/rumpvfs/rumpfs.c:1.58 src/sys/rump/librump/rumpvfs/rumpfs.c:1.59 --- src/sys/rump/librump/rumpvfs/rumpfs.c:1.58 Wed Jun 30 14:50:35 2010 +++ src/sys/rump/librump/rumpvfs/rumpfs.c Wed Jun 30 15:40:30 2010 @@ -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; }