btrfs: fix leak in btrfs_scrub_status

Properly free the output buffer.
This commit is contained in:
Pino Toscano
2015-06-18 13:34:12 +02:00
parent d8ab90cdd6
commit 9f683fbf0f

View File

@@ -1814,7 +1814,7 @@ do_btrfs_scrub_status (const char *path)
CLEANUP_FREE char *path_buf = NULL;
CLEANUP_FREE char *err = NULL;
CLEANUP_FREE_STRING_LIST char **lines = NULL;
char *out;
CLEANUP_FREE char *out = NULL;
int r;
guestfs_int_btrfsscrub *ret;