[gnome-software] trivial: Fix a tiny memory leak
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Fix a tiny memory leak
- Date: Fri, 19 May 2017 15:34:42 +0000 (UTC)
commit 0f11fad9d6ed9eb938fe335216d4dbb7da8b8546
Author: Richard Hughes <richard hughsie com>
Date: Fri May 19 11:21:08 2017 +0100
trivial: Fix a tiny memory leak
lib/gs-utils.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/lib/gs-utils.c b/lib/gs-utils.c
index 002e54f..359e30f 100644
--- a/lib/gs-utils.c
+++ b/lib/gs-utils.c
@@ -155,7 +155,6 @@ gs_utils_get_cache_filename (const gchar *kind,
g_autoptr(GPtrArray) candidates = g_ptr_array_new_with_free_func (g_free);
/* get basename */
- basename = g_path_get_basename (resource);
if (flags & GS_UTILS_CACHE_FLAG_USE_HASH) {
g_autofree gchar *basename_tmp = g_path_get_basename (resource);
g_autofree gchar *hash = g_compute_checksum_for_string (G_CHECKSUM_SHA1,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]