lib/commit: Fix a memory leak of OtChecksum

Closes: #1521
Approved by: jlebon
This commit is contained in:
Matthew Leeds 2018-03-28 22:03:33 -07:00 committed by Atomic Bot
parent 3c14546017
commit 2be4631738
1 changed files with 1 additions and 1 deletions

View File

@ -1246,7 +1246,7 @@ write_metadata_object (OstreeRepo *self,
}
else
{
OtChecksum checksum = { 0, };
g_auto(OtChecksum) checksum = { 0, };
ot_checksum_init (&checksum);
gsize len;
const guint8*bufdata = g_bytes_get_data (buf, &len);