lib/commit: Fix a memory leak of OtChecksum

Closes: #1521
Approved by: jlebon
This commit is contained in:
Matthew Leeds authored and Atomic Bot committed 2018-03-29 13:45:26 +00:00
1 parent 3c14546017
commit 2be4631738
1 file changed
+1 -1
+1 -1
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);