search for: label_tmp

Displaying 3 results from an estimated 3 matches for "label_tmp".

2015 Jun 11
2
[PATCH] New API: btrfs_filesystem_show_all
...AX_ARGS = 64; + const char *argv[MAX_ARGS]; + size_t i = 0; + size_t nr_filesystem_show = 0; + CLEANUP_FREE char *err = NULL; + char *out = NULL; + char **lines; + int r; + /* Info from Label line will be reused for the following devid line + * make two temp space to hold them */ + char *label_tmp = NULL, *uuid_tmp = NULL; + + ADD_ARG (argv, i, str_btrfs); + ADD_ARG (argv, i, "filesystem"); + ADD_ARG (argv, i, "show"); + ADD_ARG (argv, i, NULL); + + r = commandv (&out, &err, argv); + if (r == -1) { + reply_with_error ("%s", err); + free(out);...
2015 Jun 11
0
Re: [PATCH] New API: btrfs_filesystem_show_all
...char **lines; "lines" can be leaked and it isn't freed properly (only the array itself on success, and array and strings on error). > + int r; > + /* Info from Label line will be reused for the following devid line > + * make two temp space to hold them */ > + char *label_tmp = NULL, *uuid_tmp = NULL; > + > + ADD_ARG (argv, i, str_btrfs); > + ADD_ARG (argv, i, "filesystem"); > + ADD_ARG (argv, i, "show"); > + ADD_ARG (argv, i, NULL); > + > + r = commandv (&out, &err, argv); > + if (r == -1) { > + reply_with...
2015 Jun 11
1
Re: [PATCH] New API: btrfs_filesystem_show_all
...t; can be leaked and it isn't freed properly (only the array itself > on success, and array and strings on error). > > > + int r; > > + /* Info from Label line will be reused for the following devid line > > + * make two temp space to hold them */ > > + char *label_tmp = NULL, *uuid_tmp = NULL; > > + > > + ADD_ARG (argv, i, str_btrfs); > > + ADD_ARG (argv, i, "filesystem"); > > + ADD_ARG (argv, i, "show"); > > + ADD_ARG (argv, i, NULL); > > + > > + r = commandv (&out, &err, argv); > &gt...