summaryrefslogtreecommitdiff
path: root/src/map/guild.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/guild.c')
-rw-r--r--src/map/guild.c2
1 files changed, 2 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); // エンペリウムがいない