diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2019-09-10 15:38:44 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2019-09-10 15:38:44 +0900 |
commit | 79b3a6b7ab494c5ff10e740fd147f21a04907907 (patch) | |
tree | 4d4a0edc3666922135d2d2a2e4a93dd2d695ce47 /ext/repo_arch.c | |
parent | 26781f8c44b4495fba2d0f4a39fe6379b08f32ce (diff) | |
download | libsolv-79b3a6b7ab494c5ff10e740fd147f21a04907907.tar.gz libsolv-79b3a6b7ab494c5ff10e740fd147f21a04907907.tar.bz2 libsolv-79b3a6b7ab494c5ff10e740fd147f21a04907907.zip |
Imported Upstream version 0.7.2upstream/0.7.2
Diffstat (limited to 'ext/repo_arch.c')
-rw-r--r-- | ext/repo_arch.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/repo_arch.c b/ext/repo_arch.c index a0c45ce..698d506 100644 --- a/ext/repo_arch.c +++ b/ext/repo_arch.c @@ -444,8 +444,7 @@ repo_add_arch_pkg(Repo *repo, const char *fn, int flags) if (s && !s->name) { pool_error(pool, -1, "%s: package has no name", fn); - repo_free_solvable(repo, s - pool->solvables, 1); - s = 0; + s = solvable_free(s, 1); } if (s) { @@ -728,7 +727,7 @@ finishsolvable(Repo *repo, Solvable *s) return; if (!s->name) { - repo_free_solvable(repo, s - pool->solvables, 1); + solvable_free(s, 1); return; } if (!s->arch) |