svn commit: r185938 - head/sys/boot/zfs

Paul Saab ps at FreeBSD.org
Thu Dec 11 08:48:36 PST 2008


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);
 }
 


More information about the svn-src-all mailing list