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 2016-09-08 10:29:10 -04:00 committed by Atomic Bot
parent 845dc65196
commit 8dbb104cdc
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}