Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Dec 2008 16:48:35 +0000 (UTC)
From:      Paul Saab <ps@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r185938 - head/sys/boot/zfs
Message-ID:  <200812111648.mBBGmZFD070379@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ps
Date: Thu Dec 11 16:48:35 2008
New Revision: 185938
URL: http://svn.freebsd.org/changeset/base/185938

Log:
  Fix a leak introduced in r185902.  We should free the devspec if
  we've successfully found a zfs pool.

Modified:
  head/sys/boot/zfs/zfs.c

Modified: head/sys/boot/zfs/zfs.c
==============================================================================
--- head/sys/boot/zfs/zfs.c	Thu Dec 11 16:26:38 2008	(r185937)
+++ head/sys/boot/zfs/zfs.c	Thu Dec 11 16:48:35 2008	(r185938)
@@ -486,6 +486,7 @@ zfs_dev_open(struct open_file *f, ...)
 	}
 
 	f->f_devdata = spa;
+	free(dev);
 	return (0);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812111648.mBBGmZFD070379>