aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2020-04-19 01:13:35 -0400
committerrsiddharth <s@ricketyspace.net>2020-04-19 01:14:07 -0400
commitf1a28fc554b08f425bbb67ff25ad40d5eb720797 (patch)
treed3a6748a120ccdf3c93c9d12fa6d206907b825b1
parent1d47e2921880480c78c72767971b449e71a0b433 (diff)
downloadnserver-f1a28fc554b08f425bbb67ff25ad40d5eb720797.tar.gz
nserver-f1a28fc554b08f425bbb67ff25ad40d5eb720797.tar.bz2
nserver-f1a28fc554b08f425bbb67ff25ad40d5eb720797.tar.xz
nserver-f1a28fc554b08f425bbb67ff25ad40d5eb720797.zip
ncmd.c: Update process.
* src/ncmd.c (process): Clean up parts.
-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;