diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-11-02 12:43:40 -0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-11-02 12:43:40 -0200 |
commit | 8c5ad9b304fd405380501f5acd1f7c809a1a2746 (patch) | |
tree | 3b77ffdb176ce2f125142bf7242c8e3dcba9f90d /src/content-parser.c | |
parent | 1faa52052624e7c03256df0c63c43f5d40ddb57a (diff) | |
download | blogc-8c5ad9b304fd405380501f5acd1f7c809a1a2746.tar.gz blogc-8c5ad9b304fd405380501f5acd1f7c809a1a2746.tar.bz2 blogc-8c5ad9b304fd405380501f5acd1f7c809a1a2746.zip |
content-parser: fix memory leak in gcc
Diffstat (limited to 'src/content-parser.c')
-rw-r--r-- | src/content-parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |