From: Rob Norris Date: Mon, 27 Mar 2017 22:27:31 +0000 (+0100) Subject: Fix small memory leak when downloading bzip files. X-Git-Url: https://git.street.me.uk/andy/viking.git/commitdiff_plain/15f1e9b413b1d2f31e01fb0b165b0889a4deecfa?hp=4c428c7799a82148881e4b66c5f3838525100eac Fix small memory leak when downloading bzip files. --- diff --git a/src/download.c b/src/download.c index 798bdba2..c3b6068b 100644 --- a/src/download.c +++ b/src/download.c @@ -212,6 +212,7 @@ void a_try_decompress_file (gchar *name) g_critical ("%s: remove file failed [%s]", __FUNCTION__, name ); if ( g_rename (bz2_name, name) ) g_critical ("%s: file rename failed [%s] to [%s]", __FUNCTION__, bz2_name, name ); + g_free ( bz2_name ); } } }