diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-05 17:51:33 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-05 18:16:19 +0100 |
commit | 7cbfe2fa7507296e01b442df382c926f88e4d9a0 (patch) | |
tree | db50e0cf54c4526c663f1d77fe56d6ba3f69fdd2 /main.c | |
parent | Improve templating macros. (diff) | |
download | calp-7cbfe2fa7507296e01b442df382c926f88e4d9a0.tar.gz calp-7cbfe2fa7507296e01b442df382c926f88e4d9a0.tar.xz |
Fix up GC a tiny bit.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -62,12 +62,15 @@ int main (int argc, char* argv[argc]) { } free_vcalendar(&cal); - for (int i = 0; i < cline_ptr; i++) { - if (clines[i] != NULL) { + for (int i = 0; i < gc_ptr; i++) { + if (gc_vect[i] != NULL) { // printf("clines[%i] : [%s] := [%s]\n", i, clines[i]->key.mem, clines[i]->val.mem); - printf("clines[%i] : [%s] := [%s]\n", i, clines[i]->key.mem, clines[i]->vals.head->after->value->mem); + // printf("gc_vect[%i] : [%s] := [%s]\n", i, gc_vect[i]->key.mem, gc_vect[i]->vals.head->after->value->mem); + printf("gc_vect[%i] : [%s] := [%s]\n", i, + ((content_line*) gc_vect[i])->key.mem, + ((content_line*) gc_vect[i])->vals.head->after->value->mem); } } - free(clines); + free(gc_vect); } |