mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-23 21:35:29 +03:00
Add missing fclose
Fixing resource leak in _umount(). CHECKME: mountpoints with spaces need to be checked
This commit is contained in:
parent
dc60e49a4d
commit
85933f336c
@ -1,5 +1,6 @@
|
||||
Version 2.02.78 -
|
||||
====================================
|
||||
Fix missing fclose for _umount() in dmeventd snapshot plugin.
|
||||
Fix out-of-scope variable usage in process_each_lv().
|
||||
Fix dm_task_destroy(NULL) call in _node_clear_table() error path.
|
||||
Fix resource leak in _rm_blks().
|
||||
|
@ -170,6 +170,9 @@ static void _umount(const char *device, int major, int minor)
|
||||
device, words[1], strerror(errno));
|
||||
}
|
||||
}
|
||||
|
||||
if (fclose(mounts))
|
||||
syslog(LOG_ERR, "Failed to close /proc/mounts.\n");
|
||||
}
|
||||
|
||||
void process_event(struct dm_task *dmt,
|
||||
|
Loading…
Reference in New Issue
Block a user