summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4d64da6)
raw | patch | inline | side by side (parent: 4d64da6)
author | Sebastian Harl <sh@tokkee.org> | |
Fri, 13 Dec 2013 13:36:38 +0000 (14:36 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Fri, 13 Dec 2013 13:36:38 +0000 (14:36 +0100) |
src/client/sysdb.c | patch | blob | history |
diff --git a/src/client/sysdb.c b/src/client/sysdb.c
index 66790cd29872a2db358f7d41605a9df707e3e0d2..aa791385cba8fabcb92b4a8810e91820f26b12a5 100644 (file)
--- a/src/client/sysdb.c
+++ b/src/client/sysdb.c
if (! line)
break;
- if (*line == '\0')
+ if (*line == '\0') {
+ free(line);
continue;
+ }
if (*line != ' ')
add_history(line);
+
+ free(line);
}
if (hist_file[0] != '\0') {