diff --git a/src/libostree/ostree-repo-static-delta-compilation.c b/src/libostree/ostree-repo-static-delta-compilation.c index 188f467d..15b1df8d 100644 --- a/src/libostree/ostree-repo-static-delta-compilation.c +++ b/src/libostree/ostree-repo-static-delta-compilation.c @@ -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); }