summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-05-12 21:48:20 +0200
committerThomas Haller <thaller@redhat.com>2020-05-19 18:07:31 +0200
commit753cc7b79b3b600ed12c535b1d153733d38fdf4f (patch)
tree1a041ef3000c6828f06c17eae7d0ace5c2336a4e
parent3ab082ed962dd7f494cee0c844d3380b51d21981 (diff)
downloadNetworkManager-753cc7b79b3b600ed12c535b1d153733d38fdf4f.tar.gz
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.
-rw-r--r--libnm-core/nm-utils.c2
1 files changed, 1 insertions, 1 deletions
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;