From 753cc7b79b3b600ed12c535b1d153733d38fdf4f Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 12 May 2020 21:48:20 +0200 Subject: [PATCH] libnm: use correct free macro for buffer in nm_utils_base64secret_decode() In practice, g_free() and free() are the same. Still, avoid mixing the APIs and use free() as plain malloc() was used to allocate the buffer. --- libnm-core/nm-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnm-core/nm-utils.c b/libnm-core/nm-utils.c index 2b1c1098ae..be76ead592 100644 --- a/libnm-core/nm-utils.c +++ b/libnm-core/nm-utils.c @@ -5783,7 +5783,7 @@ nm_utils_base64secret_decode (const char *base64_key, gsize required_key_len, guint8 *out_key) { - gs_free guint8 *bin_arr = NULL; + nm_auto_free guint8 *bin_arr = NULL; gsize base64_key_len; gsize bin_len; int r;