1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Fix memory leak in error path

Release allocated path buffer in error path.
This commit is contained in:
Zdenek Kabelac 2010-11-24 09:43:18 +00:00
parent e8ec0ba2e3
commit 9d6d98c900
2 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.78 -
====================================
Fix memory leak in error path of parse_loop_device_name() from dmsetup.
Fix missing dlclose in _init_formats() error path from init_format call.
Fix missing fclose for _umount() in dmeventd snapshot plugin.
Fix out-of-scope variable usage in process_each_lv().

View File

@ -2904,6 +2904,7 @@ static char *parse_loop_device_name(const char *dev, const char *dev_dir)
return buf;
error:
dm_free(buf);
return NULL;
}