aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-01-22 14:16:30 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-01-22 14:18:19 +0100
commitdba60d8b985247be7f0b0eef0bc0cefef651c824 (patch)
tree853afca0b32884c279e1a949313873f9c0d649d6 /parse.c
parentStart using trie's instead of hash-maps. (diff)
downloadcalp-dba60d8b985247be7f0b0eef0bc0cefef651c824.tar.gz
calp-dba60d8b985247be7f0b0eef0bc0cefef651c824.tar.xz
Fix crash.
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.c b/parse.c
index 83693e8c..557046b2 100644
--- a/parse.c
+++ b/parse.c
@@ -128,8 +128,8 @@ int parse_file(FILE* f, vcalendar* cal) {
strbuf_copy(&cline.val, &str);
*strbuf_cur(&cline.val) = 0;
}
- strbuf_free(&str);
- content_line_free(&cline);
+ FREE(strbuf)(&str);
+ FREE(content_line)(&cline);
return 0;
}