1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Add missing fclose

Fixing resource leak in _umount().

CHECKME: mountpoints with spaces need to be checked
This commit is contained in:
Zdenek Kabelac 2010-11-23 21:19:45 +00:00
parent aaa7f4c966
commit 2044eacc7e
2 changed files with 4 additions and 0 deletions

View File

@ -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().

View File

@ -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,