Issue information

Issue ID
#2488
Status
Fixed
Severity
Medium
Started
Hercules Elf Bot
Nov 25, 2008 23:45
Last Post
Hercules Elf Bot
Nov 25, 2008 23:45
Confirmation
N/A

Hercules Elf Bot - Nov 25, 2008 23:45

Originally posted by [b]Bakachan[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=2488

Hi,
I'm new so i hope i did this correctly.

I have problems with the mapserver reporting a memleak when running a script i'm working on, i've reduced the problem to this code, and removing the entry in the custom_scripts.conf will stop the message from appearing on exit, so i'm pretty sure this causes the error.
[codebox]- script Memleak -1,{
OnInit:
debugmes callfunc("func1");
end;
}

function script func1 {
set .@string1$,callfunc("func2");
set .@string2$,"abc";
set .@string3$,.@string2$+.@string1$;
return .@string3$;
}

function script func2 {
set .@string4$,"def";
return .@string4$;
}[/codebox]

This post has been edited by Bakachan: Nov 25 2008, 03:47 PM