aboutsummaryrefslogtreecommitdiffstats
path: root/src/content-parser.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-11-04 01:29:00 -0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-11-04 01:29:00 -0200
commit13ce0cdba95a857410208282ea5d0bb13ee1baec (patch)
treeff53b56d31231f9f05fd3ff9f518f7f90f90bea0 /src/content-parser.c
parent37850db5081e26a26f05d062497811b864953778 (diff)
downloadblogc-13ce0cdba95a857410208282ea5d0bb13ee1baec.tar.gz
blogc-13ce0cdba95a857410208282ea5d0bb13ee1baec.tar.bz2
blogc-13ce0cdba95a857410208282ea5d0bb13ee1baec.zip
Revert "content-parser: fix memory leak in gcc"
This reverts commit 8c5ad9b304fd405380501f5acd1f7c809a1a2746.
Diffstat (limited to 'src/content-parser.c')
-rw-r--r--src/content-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content-parser.c b/src/content-parser.c
index f451587..1529ace 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 != NULL)
+ if (rv_d)
b_string_append(rv, rv_d);
free(rv_d);
state = CONTENT_START_LINE;