summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorKevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-08 15:04:32 +0000
committerKevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-08 15:04:32 +0000
commitbc8ac28af7554e42caa542aae2e334620860fe38 (patch)
tree6c65d4bdb96c44404ad496fc323ab142a2857d02 /src/map
parentc515658d44a9d43f549c34ff8ae001170d57844e (diff)
downloadhercules-bc8ac28af7554e42caa542aae2e334620860fe38.tar.gz
hercules-bc8ac28af7554e42caa542aae2e334620860fe38.tar.bz2
hercules-bc8ac28af7554e42caa542aae2e334620860fe38.tar.xz
hercules-bc8ac28af7554e42caa542aae2e334620860fe38.zip
Added some aFrees, ultramage is a jerk.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12536 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/guild.c2
-rw-r--r--src/map/party.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/map/guild.c b/src/map/guild.c
index 658fe740f..0eae68b57 100644
--- a/src/map/guild.c
+++ b/src/map/guild.c
@@ -406,6 +406,7 @@ int guild_create(struct map_session_data *sd,char *name)
if(sd->status.guild_id || strlen(trim(tname)) < 2)
{
clif_guild_created(sd,1); // すでに所属している
+ aFree(tname);
return 0;
}
if(!battle_config.guild_emperium_check || pc_search_inventory(sd,714) >= 0) {
@@ -413,6 +414,7 @@ int guild_create(struct map_session_data *sd,char *name)
guild_makemember(&m,sd);
m.position=0;
intif_guild_create(name,&m);
+ aFree(tname);
return 1;
}
clif_guild_created(sd,3); // エンペリウムがいない
diff --git a/src/map/party.c b/src/map/party.c
index a1d45a0e5..f165fe881 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -113,12 +113,14 @@ int party_create(struct map_session_data *sd,char *name,int item,int item2)
if(sd->status.party_id) {
clif_party_created(sd,2);
+ aFree(tname);
return 0; // "already in a party"
}
if(strlen(trim(tname)) < 2)
{
clif_party_created(sd, 1);
+ aFree(tname);
return 0;
}