libnm: fix memleak in _nm_utils_ssid_to_string_arr()

Fixes: 5cd4e6f3e6
(cherry picked from commit 54e1f73e0c)
This commit is contained in:
Thomas Haller
2018-09-13 16:12:51 +02:00
parent 8309a7a696
commit d01b37c46f

View File

@@ -431,7 +431,7 @@ nm_utils_escape_ssid (const guint8 *ssid, gsize len)
char *
_nm_utils_ssid_to_string_arr (const guint8 *ssid, gsize len)
{
char *s_copy;
gs_free char *s_copy = NULL;
const char *s_cnst;
if (len == 0)