summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pacman.c6
-rw-r--r--src/pacman.h2
2 files changed, 3 insertions, 5 deletions
diff --git a/src/pacman.c b/src/pacman.c
index 92476fe6..8aa7037a 100644
--- a/src/pacman.c
+++ b/src/pacman.c
@@ -972,7 +972,7 @@ int pacman_sync(pacdb_t *db, PMList *targets)
db_write(db, depender);
/* add the new requiredby */
- new->requiredby = list_add(new->requiredby, k->data);
+ new->requiredby = list_add(new->requiredby, strdup(k->data));
}
}
}
@@ -1013,9 +1013,7 @@ int pacman_sync(pacdb_t *db, PMList *targets)
db_close(dbs->db);
for(j = dbs->pkgcache; j; j = j->next) {
if(j->data) {
- /* XXX: this freepkg() still locks up, but only when the "replaces"
- * code has been run
- freepkg(j->data);*/
+ freepkg(j->data);
j->data = NULL;
}
}
diff --git a/src/pacman.h b/src/pacman.h
index c4810d39..cd231dc1 100644
--- a/src/pacman.h
+++ b/src/pacman.h
@@ -22,7 +22,7 @@
#define _PAC_PACMAN_H
#ifndef PACVER
-#define PACVER "2.6.2"
+#define PACVER "2.6.3"
#endif
#ifndef PKGDIR