From 501437af0701256e64c29d4b7dd0b6d4271275cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Fri, 6 Jan 2017 07:26:43 +0100 Subject: [PATCH] exec: fix memory leak in display of process output --- ChangeLog.adoc | 1 + src/plugins/exec/exec.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 9b5497b4c..857b9bf76 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -26,6 +26,7 @@ New features:: * core: add option "time" in command /debug * api: add info "uptime" (WeeChat uptime) * api: add info "pid" (WeeChat PID) (issue #850) + * exec: fix memory leak in display of process output * fifo: add file fifo.conf and option fifo.file.path to customize FIFO pipe path/filename (issue #850) * irc: add server option "usermode" (issue #377, issue #820) * irc: add tag "self_msg" on self messages (issue #840) diff --git a/src/plugins/exec/exec.c b/src/plugins/exec/exec.c index 61a517a2e..05fb97ae4 100644 --- a/src/plugins/exec/exec.c +++ b/src/plugins/exec/exec.c @@ -340,6 +340,8 @@ exec_display_line (struct t_exec_cmd *exec_cmd, struct t_gui_buffer *buffer, line_color); } } + + free (line_color); } /*