summaryrefslogtreecommitdiff
path: root/hiredis.c
diff options
context:
space:
mode:
Diffstat (limited to 'hiredis.c')
-rw-r--r--hiredis.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hiredis.c b/hiredis.c
index 34198fc..3a70e1d 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -984,6 +984,10 @@ int redisFormatSdsCommandArgv(sds *target, int argc, const char **argv,
return totlen;
}
+void redisFreeSdsCommand(sds cmd) {
+ sdsfree(cmd);
+}
+
/* Format a command according to the Redis protocol. This function takes the
* number of arguments, an array with arguments and an array with their
* lengths. If the latter is set to NULL, strlen will be used to compute the