From c2a18ce1e0404b1a4248a59b209241b02894ecbc Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 12 May 2020 21:48:20 +0200 Subject: 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() is 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 7b69b4ef7a..3a615b5f0e 100644 --- a/libnm-core/nm-utils.c +++ b/libnm-core/nm-utils.c @@ -5856,7 +5856,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; -- cgit v1.2.1