From 8c5ad9b304fd405380501f5acd1f7c809a1a2746 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Mon, 2 Nov 2015 12:43:40 -0200 Subject: content-parser: fix memory leak in gcc --- src/content-parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/content-parser.c b/src/content-parser.c index 1529ace..f451587 100644 --- a/src/content-parser.c +++ b/src/content-parser.c @@ -1109,7 +1109,7 @@ param_end: if (c == '\n' || c == '\r' || is_last) { char *rv_d = blogc_directive_loader(directive_name, directive_argument, directive_params); - if (rv_d) + if (rv_d != NULL) b_string_append(rv, rv_d); free(rv_d); state = CONTENT_START_LINE; -- cgit v1.2.3-18-g5258