this segfault isn't really needed either.

This commit is contained in:
Alcaro
2018-04-21 11:21:32 +02:00
parent 2cc9e855b8
commit 16e7219456

View File

@@ -110,6 +110,7 @@ public:
{
size_t len = f->len();
uint8_t* ptr = (uint8_t*)malloc(len);
if (!ptr) return NULL;
if (!f->read(ptr, 0, len)) { free(ptr); return NULL; }
return new filemap_fallback(f, len, ptr);
}