[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:
1 parent
eb7ba645af
commit
49b8a72622
12 files changed
+30
-13
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user