summaryrefslogtreecommitdiff
path: root/src/sds.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2011-04-07 12:55:02 +0200
committerantirez <antirez@gmail.com>2011-04-07 12:55:02 +0200
commit726a39c15ff5d89f0d44a32cca8869cf0589f929 (patch)
tree9d03dc62a677fe80a0fc0818d3b921e3876f11f5 /src/sds.c
parent0b7f6d0913f96f2fe8280afc681c6e0a65ca81c9 (diff)
downloadredis-726a39c15ff5d89f0d44a32cca8869cf0589f929.tar.gz
initial cluster config load code
Diffstat (limited to 'src/sds.c')
-rw-r--r--src/sds.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sds.c b/src/sds.c
index 8c7540990..37c63b055 100644
--- a/src/sds.c
+++ b/src/sds.c
@@ -554,6 +554,13 @@ err:
return NULL;
}
+void sdssplitargs_free(sds *argv, int argc) {
+ int j;
+
+ for (j = 0 ;j < argc; j++) sdsfree(argv[j]);
+ zfree(argv);
+}
+
#ifdef SDS_TEST_MAIN
#include <stdio.h>
#include "testhelp.h"