This buffer contains the command to be sent to para_audiod. It is
allocated but never freed.
int main(int argc, char *argv[])
{
int ret = -E_AUDIOC_SYNTAX, fd;
- char *cf, *buf = NULL, *args;
+ char *cf, *buf = NULL, *args = NULL;
size_t bufsize;
if (audioc_cmdline_parser(argc, argv, &conf))
} while (ret >= 0);
out:
free(buf);
+ free(args);
if (ret < 0)
PARA_ERROR_LOG("%s\n", para_strerror(-ret));
return ret < 0? EXIT_FAILURE : EXIT_SUCCESS;