[yum-commits] 2 commits - db.c

James Antill james at osuosl.org
Tue Apr 8 16:14:25 UTC 2014


 db.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 54c9c5cf362ba3730ac8837c3bd88c87a6f7fa47
Author: Tomas Mlcoch <tmlcoch at redhat.com>
Date:   Tue Apr 8 11:08:38 2014 +0200

    Fix memory leak in yum_db_index_primary_tables()

diff --git a/db.c b/db.c
index 0191b06..39c8953 100644
--- a/db.c
+++ b/db.c
@@ -493,6 +493,7 @@ yum_db_index_primary_tables (sqlite3 *db, GError **err)
         if (i < 2) {
             query = g_strdup_printf(nameindexsql, deps[i], deps[i]);
             rc = sqlite3_exec (db, query, NULL, NULL, NULL);
+            g_free(query);
             if (rc != SQLITE_OK) {
                 g_set_error (err, YUM_DB_ERROR, YUM_DB_ERROR,
                              "Can not create %sname index: %s",
commit d92490c2b404dab906a770a57cbdba7601eb06e6
Author: Tomas Mlcoch <tmlcoch at redhat.com>
Date:   Tue Apr 8 11:01:49 2014 +0200

    Create indexes on tables with weak deps

diff --git a/db.c b/db.c
index ae9552c..0191b06 100644
--- a/db.c
+++ b/db.c
@@ -469,7 +469,8 @@ yum_db_index_primary_tables (sqlite3 *db, GError **err)
         return;
     }
 
-    const char *deps[] = { "requires", "provides", "conflicts", "obsoletes", NULL };
+    const char *deps[] = { "requires", "provides", "conflicts", "obsoletes",
+			   "suggests", "enhances", "recommends", "supplements", NULL };
     int i;
 
     const char *pkgindexsql = "CREATE INDEX IF NOT EXISTS pkg%s on %s (pkgKey)";


More information about the Yum-commits mailing list