summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <pwithnall@gnome.org>2024-04-19 19:14:41 +0100
committerPhilip Withnall <pwithnall@gnome.org>2024-04-19 20:20:01 +0100
commit09a494c60b71d725e0b554a4b81c4b277dcecd38 (patch)
treeff72c66cb13fe53c5121b3977694965473b1f18d
parentfa6a9eb5fd3643dc07e3b903291ff6c971f4d527 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/user.c b/src/user.c
index 4bff1bd..0fc4928 100644
--- a/src/user.c
+++ b/src/user.c
@@ -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;