Originally posted by [b]Koca[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=2743
Hi (IMG:
style_emoticons/default/smile.gif) There's a memory leak in map server when using getguildmaster or getguildmasterid script commands. In function buildin_getguildmaster_sub there's line:
CODE
buf=(char *)aMallocA(NAME_LENGTH*sizeof(char));
... but aFree is missing. We can't place it into that function, because buf is returned. Adding
aFree(master); to those two script commands should do it (tested with getguildmasterid command, but I'm not really sure I'm doin' it right). Thank you guys (IMG:
style_emoticons/default/ani_meow.gif)