mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
mount: free all parts of mnt entries
mnt_entry contains a few strings and they should be release too CID 996198 (#4 of 4): Resource leak (RESOURCE_LEAK) 20. leaked_storage: Variable "pm" going out of scope leaks the storage it points to. CID 996190 (#1 of 1): Resource leak (RESOURCE_LEAK) 13. leaked_storage: Variable "new" going out of scope leaks the storage it points to. Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
edc865361e
commit
6a49f82fb6
@@ -117,11 +117,8 @@ struct mount_info {
|
||||
struct list_head siblings;
|
||||
};
|
||||
|
||||
static inline void mnt_entry_init(struct mount_info *pm)
|
||||
{
|
||||
pm->parent = NULL;
|
||||
INIT_LIST_HEAD(&pm->children);
|
||||
}
|
||||
extern struct mount_info *mnt_entry_alloc();
|
||||
extern void mnt_entry_free(struct mount_info *mi);
|
||||
|
||||
struct vm_area_list;
|
||||
|
||||
|
Reference in New Issue
Block a user