From a4256940da049f91bbbea5e53e469a59ea9c10f7 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Fri, 25 Oct 2013 21:20:58 +0200 Subject: Imported Upstream version 0.9.8.8 --- libnm-util/crypto.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libnm-util/crypto.c') diff --git a/libnm-util/crypto.c b/libnm-util/crypto.c index 949ee812..0cad7f60 100644 --- a/libnm-util/crypto.c +++ b/libnm-util/crypto.c @@ -238,19 +238,25 @@ parse_old_openssl_key_file (const GByteArray *contents, _("Could not decode private key.")); goto parse_error; } + g_string_free (str, TRUE); if (lines) g_strfreev (lines); bindata = g_byte_array_sized_new (tmp_len); g_byte_array_append (bindata, tmp, tmp_len); + g_free (tmp); + *out_iv = iv; *out_cipher = cipher; return bindata; parse_error: + g_free (tmp); g_free (cipher); g_free (iv); + if (str) + g_string_free (str, TRUE); if (lines) g_strfreev (lines); return NULL; -- cgit 1.3.0-6-gf8a5