Commit 47855a85 authored by Mark Fasheh's avatar Mark Fasheh

- need to free running_checksum object when we are done with it.

Reviewed-by: 's avatarMark Fasheh <mfasheh@suse.de>
parent 364e94a2
......@@ -101,4 +101,6 @@ void finish_running_checksum(struct running_checksum *c, unsigned char *digest)
memcpy(digest, gcry_digest, digest_len);
gcry_md_close(c->hd);
free(c);
}
......@@ -81,4 +81,5 @@ void add_to_running_checksum(struct running_checksum *c,
void finish_running_checksum(struct running_checksum *c, unsigned char *digest)
{
mhash_deinit(c->td, digest);
free(c);
}
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