diff options
author | Michael Schroeder <mls@suse.de> | 2014-01-08 14:43:10 +0100 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2014-01-08 14:43:10 +0100 |
commit | 178e160000d17cd9a7bebb160bb0b031092a6887 (patch) | |
tree | 07c12afce0fe0be085402010a5cdd02afa0650a3 /ext | |
parent | 84957715aacbe8405e3cb367fe763220d5ba6b42 (diff) | |
download | libsolv-178e160000d17cd9a7bebb160bb0b031092a6887.tar.gz libsolv-178e160000d17cd9a7bebb160bb0b031092a6887.tar.bz2 libsolv-178e160000d17cd9a7bebb160bb0b031092a6887.zip |
three other changes to make cppcheck happier
Diffstat (limited to 'ext')
-rw-r--r-- | ext/repo_rpmdb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/repo_rpmdb.c b/ext/repo_rpmdb.c index 281a555..613b6e8 100644 --- a/ext/repo_rpmdb.c +++ b/ext/repo_rpmdb.c @@ -2122,8 +2122,7 @@ repo_add_rpm(Repo *repo, const char *rpm, int flags) repodata_set_bin_checksum(data, s - pool->solvables, SOLVABLE_CHECKSUM, chksumtype, solv_chksum_get(chksumh, 0)); chksumh = solv_chksum_free(chksumh, 0); } - if (rpmhead) - solv_free(rpmhead); + solv_free(rpmhead); if (!(flags & REPO_NO_INTERNALIZE)) repodata_internalize(data); return s - pool->solvables; |