summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2020-04-05 19:59:52 +0200
committerGitHub <noreply@github.com>2020-04-05 19:59:52 +0200
commita761af9650e781a272fa3b22bc85eca3e141aed7 (patch)
treead5a02716d654ed1fd8c82a87af9ed1a1bb8463a
parente827fed09af22b18ffa54ca5dc9991eff464f7ab (diff)
parentd5faef5a8cc681c9f30aed215f1bab0aaf9bcc77 (diff)
downloadhercules-a761af9650e781a272fa3b22bc85eca3e141aed7.tar.gz
hercules-a761af9650e781a272fa3b22bc85eca3e141aed7.tar.bz2
hercules-a761af9650e781a272fa3b22bc85eca3e141aed7.tar.xz
hercules-a761af9650e781a272fa3b22bc85eca3e141aed7.zip
Merge pull request #2655 from Kenpachi2k13/mem_leak_fix
Fix memory leak in npc_expanded_barter_fromsql() function
-rw-r--r--src/map/npc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 2ac99948b..40ec380ee 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -1799,6 +1799,7 @@ static void npc_expanded_barter_fromsql(void)
) {
SqlStmt_ShowDebug(stmt);
SQL->StmtFree(stmt);
+ StrBuf->Destroy(&buf);
return;
}