From 1017ce0a91b8c66d36c9b65b0a1a0011342fa958 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Tue, 20 Jan 2015 15:16:00 +0100 Subject: Missing braces in sdssplitlen cleanup --- src/sds.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2