summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2014-02-27 23:34:43 +0000
committerChris Wilson <chris+github@qwirx.com>2014-02-27 23:34:43 +0000
commit893a7a5d47f17940df770be7074001145d8bee5a (patch)
tree1e3edaec4a547d560d13a4d2b95fe2fa73fb7a4e /bin
parente82eafe687f51a4074d17ff93308e0255e2b545e (diff)
Fix memory leak in bbackupquery readline completion.
Diffstat (limited to 'bin')
-rw-r--r--bin/bbackupquery/bbackupquery.cpp1
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;
}