]> git.ipfire.org Git - pakfire.git/commitdiff
libpakfire: repo: Don't clear repodata when repo is deallocated
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 20 May 2017 21:26:01 +0000 (23:26 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 20 May 2017 21:26:01 +0000 (23:26 +0200)
This data needs to stay there until the pool (and the actual
repository in libsolv) is destroyed.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/repo.c

index 8c2686deb2e3971e641379ec115249b9bf9442ce..ab6a7a086c3b8fd27258909f2d57caa81848e409 100644 (file)
@@ -109,9 +109,6 @@ void pakfire_repo_free(PakfireRepo repo) {
        if (repo->repo)
                repo->repo->appdata = NULL;
 
-       // Free repodata.
-       repodata_free(repo->filelist);
-
        if (repo->cache)
                pakfire_repocache_free(repo->cache);