diff options
author | Chris Wilson <chris+github@qwirx.com> | 2014-02-27 23:34:43 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2014-02-27 23:34:43 +0000 |
commit | 893a7a5d47f17940df770be7074001145d8bee5a (patch) | |
tree | 1e3edaec4a547d560d13a4d2b95fe2fa73fb7a4e | |
parent | e82eafe687f51a4074d17ff93308e0255e2b545e (diff) |
Fix memory leak in bbackupquery readline completion.
-rw-r--r-- | bin/bbackupquery/bbackupquery.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/bbackupquery/bbackupquery.cpp b/bin/bbackupquery/bbackupquery.cpp index ccb4a654..dbac3f27 100644 --- a/bin/bbackupquery/bbackupquery.cpp +++ b/bin/bbackupquery/bbackupquery.cpp @@ -154,6 +154,7 @@ char * completion_generator(const char *text, int state) if(state < 0 || state >= (int) completions.size()) { rl_attempted_completion_over = 1; + sapCmd.reset(); return NULL; } |