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.
This commit is contained in:
Thomas Haller
2020-05-12 21:48:20 +02:00
parent 3ab082ed96
commit 753cc7b79b

View File

@@ -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;