]> git.saurik.com Git - redis.git/blobdiff - sds.c
CONFIG command now supports hot modification of RDB saving parameters.
[redis.git] / sds.c
diff --git a/sds.c b/sds.c
index 8d1edcb7ec977d9969b9146a436935dcd4c3eb81..6e6fa508f3dedeaf56d517e3f72ccd03287f21dd 100644 (file)
--- a/sds.c
+++ b/sds.c
@@ -335,3 +335,10 @@ cleanup:
     }
 #endif
 }
+
+void sdsfreesplitres(sds *tokens, int count) {
+    if (!tokens) return;
+    while(count--)
+        sdsfree(tokens[count]);
+    zfree(tokens);
+}