Skip to contentSkip to conversation

memory leak dm-exception-store.c

PATCH In review Dan Carpenter 2 participants 2 messages Nov 28, 2009 – Dec 4, 2009 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 memory leak dm-exception-store.c

Without this change we would leak tmp_store.

drivers/md/dm-exception-store.c +2 -1
@@ -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) {