From a2694e9e26bbaf51fbb2c51200122605acce5121 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 20 Aug 2010 14:24:07 -0400 Subject: [PATCH] Plug memory leak --- plugins/sudoers/plugin_error.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/sudoers/plugin_error.c b/plugins/sudoers/plugin_error.c index 65d11433d..72f9a9711 100644 --- a/plugins/sudoers/plugin_error.c +++ b/plugins/sudoers/plugin_error.c @@ -105,4 +105,5 @@ _warning(int use_errno, const char *fmt, va_list ap) msg[nmsgs - 1].msg = "\n"; memset(&repl, 0, sizeof(repl)); sudo_conv(nmsgs, msg, repl); + efree(str); } -- 2.40.0