aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sds.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sds.c b/src/sds.c
index 841a6ae..674fc48 100644
--- a/src/sds.c
+++ b/src/sds.c
@@ -527,7 +527,9 @@ sds *sdssplitlen(const char *s, size_t len, const char *sep, size_t seplen, size
cleanup:
{
- for (size_t i = 0; i < elements; i++) sdsfree(tokens[i]);
+ for (size_t i = 0; i < elements; i++) {
+ sdsfree(tokens[i]);
+ }
free(tokens);
*count = 0;
return NULL;