summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-10-29 15:55:45 -0700
committerJeremy Allison <jra@samba.org>2008-10-29 15:55:45 -0700
commita238144c6ebf4d51e0d8c8b3cfd0e87814573c85 (patch)
treec74dc8d6ea3836dd27cffbbb461c7249d552041a
parent7c5f369fafee42b555c3e2b3e3482689b508fe4a (diff)
downloadsamba-a238144c6ebf4d51e0d8c8b3cfd0e87814573c85.tar.gz
samba-a238144c6ebf4d51e0d8c8b3cfd0e87814573c85.tar.bz2
samba-a238144c6ebf4d51e0d8c8b3cfd0e87814573c85.zip
Coverity fix #CID: 607 - resource leak on error path.
Jeremy.
-rw-r--r--source3/lib/readline.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/lib/readline.c b/source3/lib/readline.c
index cafb5a9f62..34867aad9e 100644
--- a/source3/lib/readline.c
+++ b/source3/lib/readline.c
@@ -105,6 +105,7 @@ static char *smb_readline_replacement(const char *prompt, void (*callback)(void)
callback();
}
}
+ SAFE_FREE(line);
return NULL;
}