Commit 1daea16e authored by Bernhard Link's avatar Bernhard Link

fix two memory leaks

parent cebd50c0
......@@ -131,6 +131,7 @@ static retvalue binaries_parse_chunk(const char *chunk, const char *packagename,
if( !RET_WAS_ERROR(r) )
r = properversion(version);
if( RET_WAS_ERROR(r) ) {
free(mysourcename);
return r;
}
mybasename = calc_binary_basename(packagename, version,
......
......@@ -583,6 +583,7 @@ static retvalue parse_changes_files(struct changes *c, struct strlist filelines[
return r;
}
assert( count == ofs );
free(hashes);
return RET_OK;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment