diff --git a/trurl.c b/trurl.c index d60a4891..9467d32e 100644 --- a/trurl.c +++ b/trurl.c @@ -1143,6 +1143,7 @@ static struct string *memdupdec(char *source, size_t len, bool json) curl_free(left); ret = malloc(sizeof(struct string)); if(!ret) { + free(str); return NULL; } ret->str = str;