summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 812c70b47..6695abf6b 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -1961,6 +1961,7 @@ int unit_free(struct block_list *bl, int clrtype)
sd->regstr_num = 0;
}
//Tell the script to end, not delete it, it will free itself when necessary [Kevin]
+ // TODO review this assumption, possible source of memory leaks [FlavioJS]
if( sd->st )
{
sd->st->rid = 0;