Skip to content

Commit 5642325

Browse files
committed
Fix another memleak
1 parent 9eb9017 commit 5642325

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/settings.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ static void config_files_add_drop_ins(GPtrArray *config_files, const char *path)
8888

8989
if (n == -1) {
9090
// Scandir error. Most likely the directory doesn't exist.
91+
g_free(drop_in_dir);
9192
return;
9293
}
9394

@@ -98,6 +99,8 @@ static void config_files_add_drop_ins(GPtrArray *config_files, const char *path)
9899
g_ptr_array_insert(config_files, insert_index, drop_in);
99100
g_free(drop_ins[n]);
100101
}
102+
103+
g_free(drop_in_dir);
101104
g_free(drop_ins);
102105
}
103106

0 commit comments

Comments
 (0)