From 1b2020cf1789970ca4e39393b8b7e20cf594db80 Mon Sep 17 00:00:00 2001 From: ps Date: Thu, 11 Dec 2008 16:48:35 +0000 Subject: Fix a leak introduced in r185902. We should free the devspec if we've successfully found a zfs pool. --- sys/boot/zfs/zfs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/boot') diff --git a/sys/boot/zfs/zfs.c b/sys/boot/zfs/zfs.c index 23f3397..9784ef9 100644 --- a/sys/boot/zfs/zfs.c +++ b/sys/boot/zfs/zfs.c @@ -486,6 +486,7 @@ zfs_dev_open(struct open_file *f, ...) } f->f_devdata = spa; + free(dev); return (0); } -- cgit v1.1