From 372b07a97a3f3566bfc39f260c30f102b56d05e7 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sat, 16 Feb 2013 04:40:27 -0600 Subject: [PATCH] Fix freeing source while parsing botfiles/items.c --- code/botlib/be_ai_goal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);