From 33dac4b4a35e0475996ec7d086cfabaf28db5126 Mon Sep 17 00:00:00 2001 From: antma Date: Tue, 21 Jan 2014 18:26:56 +0400 Subject: [PATCH] fix memory leak during replaying CODE_binlog_set_chat_title --- binlog.c | 1 + 1 file changed, 1 insertion(+) diff --git a/binlog.c b/binlog.c index 36407f7..c3b2f37 100644 --- a/binlog.c +++ b/binlog.c @@ -628,6 +628,7 @@ void replay_log_event (void) { struct chat *C = &_C->chat; if (C->title) { tfree_str (C->title); } C->title = fetch_str_dup (); + if (C->print_title) { tfree_str (C->print_title); } C->print_title = create_print_name (C->id, C->title, 0, 0, 0); #ifdef USE_LUA lua_chat_update (C);