summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-17 16:48:04 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-17 16:48:04 +0000
commita7713388a0ed188a380c51ed3901c8f42cbbce8d (patch)
tree0917748912e789754fdc5d473a96f7df35ca76ce /src/map/unit.c
parenta9aaf01f53a4551abb18d23931ac76aeddda1841 (diff)
downloadhercules-a7713388a0ed188a380c51ed3901c8f42cbbce8d.tar.gz
hercules-a7713388a0ed188a380c51ed3901c8f42cbbce8d.tar.bz2
hercules-a7713388a0ed188a380c51ed3901c8f42cbbce8d.tar.xz
hercules-a7713388a0ed188a380c51ed3901c8f42cbbce8d.zip
* Fixed potential crash in IRC processing message with '%' using *printf.
* Fixed memory leaking caused by homun_data not freed when removed. * Minor adjustments to sign/unsign in script commands. modified Changelog-Trunk.txt modified src/map/irc.c modified src/map/script.c modified src/map/unit.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9245 54d463be-8e91-2dee-dedb-b68131a5f0ec
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 2f908cecf..f3b0562e8 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -1837,6 +1837,7 @@ int unit_free(struct block_list *bl, int clrtype) {
intif_homunculus_requestdelete(hd->homunculus.hom_id);
if (sd) sd->status.hom_id = 0;
}
+ aFree(hd); // Remember to free it! [Lance]
if(sd) sd->hd = NULL;
}