[gnome-software/wip/attente/ubuntu-xenial] Free PackageInfo name
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/attente/ubuntu-xenial] Free PackageInfo name
- Date: Mon, 18 Apr 2016 04:58:40 +0000 (UTC)
commit 0747c39d6d92b4f95f70176ca7abaf24a94c7f0d
Author: William Hua <william hua canonical com>
Date: Mon Apr 18 00:58:00 2016 -0400
Free PackageInfo name
src/plugins/gs-plugin-apt.cc | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-apt.cc b/src/plugins/gs-plugin-apt.cc
index aaf9d54..b941ce4 100644
--- a/src/plugins/gs-plugin-apt.cc
+++ b/src/plugins/gs-plugin-apt.cc
@@ -133,6 +133,7 @@ free_package_info (gpointer data)
g_free (info->origin);
g_free (info->release);
g_free (info->component);
+ g_free (info->name);
g_free (info);
}
@@ -348,7 +349,8 @@ look_at_pkg (const pkgCache::PkgIterator &P,
info = g_new0 (PackageInfo, 1);
info->name = name;
g_hash_table_insert (plugin->priv->package_info, name, info);
- }
+ } else
+ g_free (name);
for (VF = candidate.FileList (); VF.IsGood (); VF++) {
// see InRelease for the fields
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]