delta: Add missing `goto out` for failure to mmap()
This was hit in practice when generating a delta for a flatpak app on ARM it looks like. Closes: #497 Approved by: alexlarsson
This commit is contained in:
parent
845dc65196
commit
8dbb104cdc
|
|
@ -483,6 +483,8 @@ get_unpacked_unlinked_content (OstreeRepo *repo,
|
|||
goto out;
|
||||
|
||||
{ GMappedFile *mfile = g_mapped_file_new_from_fd (fd, FALSE, error);
|
||||
if (!mfile)
|
||||
goto out;
|
||||
ret_content = g_mapped_file_get_bytes (mfile);
|
||||
g_mapped_file_unref (mfile);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue