aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ncmd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ncmd.c b/src/ncmd.c
index 1a71d0e..4fd2b98 100644
--- a/src/ncmd.c
+++ b/src/ncmd.c
@@ -344,6 +344,10 @@ int process(char *cmd, char *out)
rc = call_function(FUNC, parts, out);
check(rc != -1, "call function failed");
+ // clean up.
+ rc = bstrListDestroy(parts);
+ check(rc != -1, "parts clean up failed");
+
return 0;
error:
return -1;