lib: Fix some minor memory leaks
I initially was going to add a `G_DEFINE_AUTOPTR_CLEANUP_FUNC` for `FetchStaticDeltaData`, but it honestly didn't seem worth mucking around ownership everywhere and potentially getting it wrong. Discovered by Coverity. Closes: #1692 Approved by: cgwalters
This commit is contained in:
1 parent
9482922e5e
commit
fcd31a195b
2 files changed
+5
-3
No files matched your search
@@ -2486,7 +2486,10 @@ process_one_static_delta (OtPullData *pull_data,
|
||||
OSTREE_STATIC_DELTA_OPEN_FLAGS_SKIP_CHECKSUM,
|
||||
NULL, &inline_delta_part,
|
||||
cancellable, error))
|
||||
return FALSE;
|
||||
{
|
||||
fetch_static_delta_data_free (fetch_data);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
_ostree_static_delta_part_execute_async (pull_data->repo,
|
||||
fetch_data->objects,
|
||||
|
||||
Reference in new issue
Block a user