mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 17:50:16 +01:00
keyfile: fix memleak in keyfile reader's read_array_of_uint()
Fixes:9559a7a260(cherry picked from commit8239edbb9b) (cherry picked from commit8a281bf7b4)
This commit is contained in:
parent
3807e2b3bc
commit
92f057ca1d
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ read_array_of_uint (GKeyFile *file,
|
|||
GArray *array = NULL;
|
||||
gsize length;
|
||||
int i;
|
||||
gint *tmp;
|
||||
gs_free int *tmp = NULL;
|
||||
|
||||
tmp = nm_keyfile_plugin_kf_get_integer_list (file, nm_setting_get_name (setting), key, &length, NULL);
|
||||
array = g_array_sized_new (FALSE, FALSE, sizeof (guint32), length);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue