_ostree_sysroot_write_deployments_internal: stop leaking hash table

It appears the result of assign_bootserials() is never actually used,
but I haven't changed it to return void right now.

Leak found with valgrind memcheck.

Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #556
Approved by: cgwalters
This commit is contained in:
Simon McVittie authored and Atomic Bot committed 2016-10-30 22:11:15 +00:00
1 parent ff28ac4a30
commit c8a6b037ef
1 file changed
+1 -1
+1 -1
View File
@@ -1747,7 +1747,7 @@ _ostree_sysroot_write_deployments_internal (OstreeSysroot *self,
/* Assign a bootserial to each new deployment.
*/
assign_bootserials (new_deployments);
g_hash_table_unref (assign_bootserials (new_deployments));
/* Determine whether or not we need to touch the bootloader
* configuration. If we have an equal number of deployments with