Skip to content

Commit

Permalink
Merge pull request scummvm#1598 from mparnaudeau/grim_fix_alloc_deall…
Browse files Browse the repository at this point in the history
…oc_mismatch_in_textsplit_parse

GRIM: Fix alloc-dealloc mismatch in grim engine
  • Loading branch information
Botje committed Feb 10, 2020
2 parents 813280f + 3429e2c commit 1fda562
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/grim/textsplit.cpp
Expand Up @@ -235,8 +235,8 @@ static void parse(const char *line, const char *fmt, int field_count, va_list va
break;
}
}
free(str);
free(format);
delete[] str;
delete[] format;

if (count < field_count) {
error("Expected line of format '%s', got '%s'", fmt, line);
Expand Down

0 comments on commit 1fda562

Please sign in to comment.