summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}