diff --git a/code/botlib/be_ai_goal.c b/code/botlib/be_ai_goal.c index 9feeeab5..8d3b75ed 100644 --- a/code/botlib/be_ai_goal.c +++ b/code/botlib/be_ai_goal.c @@ -310,7 +310,7 @@ itemconfig_t *LoadItemConfig(char *filename) if (!PC_ExpectTokenType(source, TT_STRING, 0, &token)) { FreeMemory(ic); - FreeMemory(source); + FreeSource(source); return NULL; } //end if StripDoubleQuotes(token.string);