Skip to content

Commit 448a5e0

Browse files
committed
Fix: close leaks in clean_hosts
1 parent c2ccf60 commit 448a5e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/manage_utils.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,6 +1322,8 @@ clean_hosts (const char *given_hosts, int *max)
13221322
g_string_append_printf (clean, ", %s", host);
13231323
}
13241324

1325+
g_strfreev (split);
1326+
g_ptr_array_free (clean_array, TRUE);
13251327
return g_string_free (clean, FALSE);
13261328
}
13271329

0 commit comments

Comments
 (0)