syntax-check: add syntactic rule to prohibit gs_strfreev

and fix an instance.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano committed 2015-05-13 10:02:47 +02:00
1 parent f38ec6dfdf
commit e3a3e2b618
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -1501,7 +1501,7 @@ _ostree_parse_delta_name (const char *delta_name,
char **out_from,
char **out_to)
{
gs_strfreev char **parts = g_strsplit (delta_name, "-", 2);
g_auto(GStrv) parts = g_strsplit (delta_name, "-", 2);
*out_from = *out_to = NULL;
if (parts[0] && parts[1])