mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
daemon: fix memory leak in xfs implementation of vfs_minimum_size
Use the proper cleanup handler for deleting the guestfs_int_xfsinfo
struct (so the string fields are deleted too).
Fixes commit f5caa421d1.
This commit is contained in:
@@ -664,7 +664,7 @@ do_xfs_repair (const char *device,
|
||||
int64_t
|
||||
xfs_minimum_size (const char *path)
|
||||
{
|
||||
CLEANUP_FREE guestfs_int_xfsinfo *info = do_xfs_info (path);
|
||||
CLEANUP_FREE_XFSINFO struct guestfs_int_xfsinfo *info = do_xfs_info (path);
|
||||
|
||||
if (info == NULL)
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user