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:
1 parent
845dc65196
commit
8dbb104cdc
1 file changed
+2
@@ -483,6 +483,8 @@ get_unpacked_unlinked_content (OstreeRepo *repo,
|
|||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
{ GMappedFile *mfile = g_mapped_file_new_from_fd (fd, FALSE, error);
|
{ GMappedFile *mfile = g_mapped_file_new_from_fd (fd, FALSE, error);
|
||||||
|
if (!mfile)
|
||||||
|
goto out;
|
||||||
ret_content = g_mapped_file_get_bytes (mfile);
|
ret_content = g_mapped_file_get_bytes (mfile);
|
||||||
g_mapped_file_unref (mfile);
|
g_mapped_file_unref (mfile);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user