Skip to content

Commit 11a7575

Browse files
committed
desktop.c: fix memory leak
1 parent c7076b3 commit 11a7575

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

desktop.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ parse_line(char *line, struct app *app, int *is_desktop_entry)
8888
char *key, *value;
8989
gchar **argv = g_strsplit(line, "=", 2);
9090
if (g_strv_length(argv) != 2) {
91+
g_strfreev(argv);
9192
return;
9293
}
9394
key = g_strstrip(argv[0]);

0 commit comments

Comments
 (0)