diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-01-22 14:31:13 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-01-22 14:31:13 +0100 |
commit | 2135813ebc7cbedb581d6c68865b7177fe4727a2 (patch) | |
tree | 0cb56f100247f705d76016e16028ee6645b461a6 /parse.c | |
parent | Fix crash. (diff) | |
download | calp-2135813ebc7cbedb581d6c68865b7177fe4727a2.tar.gz calp-2135813ebc7cbedb581d6c68865b7177fe4727a2.tar.xz |
Fixed all leaks.
Diffstat (limited to '')
-rw-r--r-- | parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |