summaryrefslogtreecommitdiffstats
path: root/src/pacman.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman.c')
-rw-r--r--src/pacman.c6
1 files changed, 2 insertions, 4 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;
}
}