[patch] memory leak dm-exception-store.c

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

 



Without this change we would leak tmp_store.

Signed-off-by: Dan Carpenter <error27@xxxxxxxxx>

--- orig/drivers/md/dm-exception-store.c	2009-11-28 07:17:35.000000000 +0200
+++ devel/drivers/md/dm-exception-store.c	2009-11-28 07:23:04.000000000 +0200
@@ -216,7 +216,8 @@ int dm_exception_store_create(struct dm_
 		type = get_type("N");
 	else {
 		ti->error = "Persistent flag is not P or N";
-		return -EINVAL;
+		r = -EINVAL;
+		goto bad_type;
 	}
 
 	if (!type) {

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux