diff options
author | Alessandro Bono <alessandro.bono369@gmail.com> | 2022-11-09 12:12:53 +0100 |
---|---|---|
committer | Ray Strode <halfline@gmail.com> | 2023-04-28 19:41:28 +0000 |
commit | 5e7cc22db4623799d92fa367ebac16c7acf26d0b (patch) | |
tree | 748bc0c4d82a1532897544a86ccba4f8614eb9eb /daemon | |
parent | 021a710fc7049b4d39ef7b99be2fa1bfe02e8e9e (diff) | |
download | gdm-5e7cc22db4623799d92fa367ebac16c7acf26d0b.tar.gz |
gdm-session-worker: Plug a memory leak
We didn't free the strings inside the array.
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/gdm-session-worker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c index b5841272..c179687d 100644 --- a/daemon/gdm-session-worker.c +++ b/daemon/gdm-session-worker.c @@ -2970,7 +2970,7 @@ filter_extensions (const char * const *extensions) GPtrArray *array = NULL; char **filtered_extensions = NULL; - array = g_ptr_array_new (); + array = g_ptr_array_new_with_free_func (g_free); for (i = 0; extensions[i] != NULL; i++) { for (j = 0; gdm_supported_pam_extensions[j] != NULL; j++) { |