From 3bca9aa00f62d21a2330f4b656b9772903381890 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Fri, 13 Dec 2013 14:36:38 +0100 Subject: [PATCH] sysdb: Free memory allocated by readline(). --- src/client/sysdb.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/client/sysdb.c b/src/client/sysdb.c index 66790cd..aa79138 100644 --- a/src/client/sysdb.c +++ b/src/client/sysdb.c @@ -240,11 +240,15 @@ main(int argc, char **argv) if (! line) break; - if (*line == '\0') + if (*line == '\0') { + free(line); continue; + } if (*line != ' ') add_history(line); + + free(line); } if (hist_file[0] != '\0') { -- 2.30.2