search for: uuid_tmp

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

Did you mean: uuid_cmp
2015 Jun 11
2
[PATCH] New API: btrfs_filesystem_show_all
...nst 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); + return NULL;...
2015 Jun 11
0
Re: [PATCH] New API: btrfs_filesystem_show_all
...t;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_error ("%s&q...
2015 Jun 11
1
Re: [PATCH] New API: btrfs_filesystem_show_all
...d 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)...