From: Timo Sirainen Date: Sat, 10 Sep 2016 08:16:05 +0000 (+0300) Subject: lib-master: Fixed memory leak when IPC server is handling commands. X-Git-Tag: 2.3.0.rc1~3030 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4361f37b24057f615db6fc55aca0dc2b5d7444e;p=thirdparty%2Fdovecot%2Fcore.git lib-master: Fixed memory leak when IPC server is handling commands. This mainly meant that when login processes responded to doveadm proxy list/kick commands memory was leaked. --- diff --git a/src/lib-master/ipc-server.c b/src/lib-master/ipc-server.c index cc892f0995..672199ee4f 100644 --- a/src/lib-master/ipc-server.c +++ b/src/lib-master/ipc-server.c @@ -175,6 +175,7 @@ static void ipc_cmd_finish(struct ipc_cmd *cmd, const char *line) i_assert(cmd->server->ipc_cmd_refcount > 0); cmd->server->ipc_cmd_refcount--; + i_free(cmd); } void ipc_cmd_success(struct ipc_cmd **_cmd)