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:
Colin Walters authored and Atomic Bot committed 2016-09-08 14:34:04 +00:00
1 parent 845dc65196
commit 8dbb104cdc
1 file changed
+2
@@ -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);
}