diff options
author | Philip Withnall <pwithnall@gnome.org> | 2024-04-19 19:14:41 +0100 |
---|---|---|
committer | Philip Withnall <pwithnall@gnome.org> | 2024-04-19 20:20:01 +0100 |
commit | 09a494c60b71d725e0b554a4b81c4b277dcecd38 (patch) | |
tree | ff72c66cb13fe53c5121b3977694965473b1f18d | |
parent | fa6a9eb5fd3643dc07e3b903291ff6c971f4d527 (diff) |
user: Fix a minor memory leak of some paths
Spotted while testing work on #125, but unrelated to it.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
-rw-r--r-- | src/user.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -342,7 +342,7 @@ user_update_from_template (User *user) else account_type_string = "standard"; - dirs = g_ptr_array_new (); + dirs = g_ptr_array_new_with_free_func (g_free); for (i = 0; system_dirs[i] != NULL; i++) { for (j = 0; system_dirs[i][j] != NULL; j++) { char *dir; |