提交 260a3198 编写于 作者: B Behdad Esfahbod

[util] Plug leak

上级 ca8d96c8
......@@ -369,11 +369,12 @@ void
output_options_t::add_options (option_parser_t *parser)
{
const char *text;
char *text_free = NULL;
if (NULL == supported_formats)
text = "Set output format";
else
text = g_strdup_printf ("Set output format\n\n Supported formats are: %s", supported_formats);
text = text_free = g_strdup_printf ("Set output format\n\n Supported formats are: %s", supported_formats);
GOptionEntry entries[] =
{
......@@ -386,6 +387,8 @@ output_options_t::add_options (option_parser_t *parser)
"Output options:",
"Options controlling the output",
this);
g_free (text_free);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册