aboutsummaryrefslogtreecommitdiffstats
path: root/src/source-parser.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-04-19 01:17:54 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-04-19 01:17:54 -0300
commit86b551fdf2a8bf5c6e3cebcc463ee830d65ced94 (patch)
tree2ea95245b5d1e82d8a7197206e2b640aa54119aa /src/source-parser.c
parentfbc22f39090802845c3a046c3e10bae63d6af6cc (diff)
downloadblogc-86b551fdf2a8bf5c6e3cebcc463ee830d65ced94.tar.gz
blogc-86b551fdf2a8bf5c6e3cebcc463ee830d65ced94.tar.bz2
blogc-86b551fdf2a8bf5c6e3cebcc463ee830d65ced94.zip
safe mallocs are better :)
Diffstat (limited to 'src/source-parser.c')
-rw-r--r--src/source-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/source-parser.c b/src/source-parser.c
index 7cace0c..68cf9db 100644
--- a/src/source-parser.c
+++ b/src/source-parser.c
@@ -136,7 +136,7 @@ blogc_source_parse(const char *src, size_t src_len, blogc_error_t **err)
return NULL;
}
- blogc_source_t *rv = malloc(sizeof(blogc_source_t));
+ blogc_source_t *rv = b_malloc(sizeof(blogc_source_t));
rv->config = config;
rv->content = content;