Fix multiple memory leaks in interpret.c:PromoteToGlobal()
commit5e7ff67260dffbed413595e5e15c698129e0d9ac
authorBert Wesarg <lebert@users.sourceforge.net>
Sun, 9 Mar 2008 16:34:51 +0000 (9 16:34 +0000)
committerBert Wesarg <lebert@users.sourceforge.net>
Sun, 9 Mar 2008 16:34:51 +0000 (9 16:34 +0000)
treee4f96e4a44723488bf1bdfaafd7a7a561a770c78
parentdef6c31356bcbebb843b144a7f1d487a945fdc95
Fix multiple memory leaks in interpret.c:PromoteToGlobal()

InstallSymbol() allocates a new symbol and put this to the GlobalSymList, the
symbol passed to PromoteToGlobal() is lost.

This adds the symbol directly to the GlobalSymList, without calling
InstallSymbol().

We further prints a warning to the console for what I assume are parsing
errors, in case the symbol is in already the GlobalSymList.

Closes SF#1894726
ReleaseNotes
source/interpret.c