[ASAN] lib: Squash various leaks in library and commandline

The pull one is the most likely to affect users.  Otherwise mostly
just cleaning up `-fsanitize=address`.

Closes: #587
Approved by: jlebon
This commit is contained in:
Colin Walters authored and Atomic Bot committed 2016-11-21 16:34:06 +00:00
1 parent eb7ba645af
commit 49b8a72622
12 files changed
+30 -13

No files matched your search

+4 -1
View File
@@ -943,7 +943,10 @@ ostree_repo_write_archive_to_mtree (OstreeRepo *self,
ret = TRUE;
out:
if (a)
(void)archive_read_close (a);
{
(void)archive_read_close (a);
(void)archive_read_free (a);
}
return ret;
#else
g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,