diff options
Diffstat (limited to 'devtools/create_kyradat')
-rw-r--r-- | devtools/create_kyradat/pak.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/devtools/create_kyradat/pak.cpp b/devtools/create_kyradat/pak.cpp index 52e1a2fc3b..78fe418c6b 100644 --- a/devtools/create_kyradat/pak.cpp +++ b/devtools/create_kyradat/pak.cpp @@ -204,6 +204,7 @@ bool PAKFile::addFile(const char *name, const char *file) { assert(data); if (fread(data, 1, filesize, f) != filesize) { error("couldn't read from file '%s'", file); + delete[] data; return false; } fclose(f); |