aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-01-22 14:31:13 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-01-22 14:31:13 +0100
commit2135813ebc7cbedb581d6c68865b7177fe4727a2 (patch)
tree0cb56f100247f705d76016e16028ee6645b461a6 /parse.c
parentFix crash. (diff)
downloadcalp-2135813ebc7cbedb581d6c68865b7177fe4727a2.tar.gz
calp-2135813ebc7cbedb581d6c68865b7177fe4727a2.tar.xz
Fixed all leaks.
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 557046b2..66d35a15 100644
--- a/parse.c
+++ b/parse.c
@@ -27,13 +27,12 @@ int parse_file(FILE* f, vcalendar* cal) {
int line = 0;
// TODO these are never freed.
- NEW(vevent, ev, /**/ 100);
+ NEW(vevent, ev);
SNEW(content_line, cline, keylen, vallen);
char c;
while ( (c = fgetc(f)) != EOF) {
- // D E S (-48 '\320')
/*
* A carrige return means that the current line is at an
* end. The following character should always be \n.
@@ -88,6 +87,7 @@ int parse_file(FILE* f, vcalendar* cal) {
LINE(line, cline.key.mem, cline.val.mem);
}
*/
+
handle_kv(cal, ev, &cline, line, &s_ctx);
strbuf_soft_reset(&str);
p_ctx = p_key;