Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rpm-software-management/createrepo_c.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/parsepkg.c')
-rw-r--r--src/parsepkg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parsepkg.c b/src/parsepkg.c
index f6038bd..ac40ca3 100644
--- a/src/parsepkg.c
+++ b/src/parsepkg.c
@@ -190,14 +190,14 @@ cr_package_from_rpm(const char *filename,
}
// Compute checksum
- char *checksum = cr_checksum_file(filename, checksum_type, &tmp_err);
+ gchar *checksum = cr_checksum_file(filename, checksum_type, &tmp_err);
if (!checksum) {
g_propagate_prefixed_error(err, tmp_err,
"Error while checksum calculation: ");
goto errexit;
}
pkg->pkgId = cr_safe_string_chunk_insert(pkg->chunk, checksum);
- free(checksum);
+ g_free(checksum);
// Get header range
struct cr_HeaderRangeStruct hdr_r = cr_get_header_byte_range(filename,