memory leak dm-exception-store.c
PATCH 1/1 memory leak dm-exception-store.c
Without this change we would leak tmp_store.
Signed-off-by Dan Carpenter <[email protected]>
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) {
Alasdair G Kergon
maintainerQuoted 1 line · Dan Carpenter
Without this change we would leak
tmp_store.
Already fixed in linux-next.
http://patchwork.kernel.org/patch/38657/
Alasdair