diff options
author | Thomas Haller <thaller@redhat.com> | 2020-05-12 21:48:20 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-05-12 21:48:20 +0200 |
commit | c2a18ce1e0404b1a4248a59b209241b02894ecbc (patch) | |
tree | 1ee76f78beed012cd867ce65b8cccebf7d712b31 | |
parent | 0001bd73904e021d408c33d7622750d53cf1e9ef (diff) | |
download | NetworkManager-th/wireguard-import-dns-search.tar.gz |
libnm: use correct free macro for buffer in nm_utils_base64secret_decode()th/wireguard-import-dns-search
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.
-rw-r--r-- | libnm-core/nm-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |