From ebbfdf0e0622b6982d95ce3ecc43c33c830a7bf4 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 29 Oct 2008 15:54:20 -0700 Subject: [PATCH] Coverity fix #CID: 607 - resource leak on error path. Jeremy. (cherry picked from commit 8377d7721059f8834d08cd4cfbab9c8c50cf4ca4) --- source/lib/readline.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/lib/readline.c b/source/lib/readline.c index cafb5a9f624..34867aad9e7 100644 --- a/source/lib/readline.c +++ b/source/lib/readline.c @@ -105,6 +105,7 @@ static char *smb_readline_replacement(const char *prompt, void (*callback)(void) callback(); } } + SAFE_FREE(line); return NULL; } -- 2.11.4.GIT