atom: introduce atomfree()
Dependencies
- [2]
EHVLRMEFchange: add vertexeq, fix deleted lines duplication - [*]
XJ2PEH74add meson.build - [*]
L3HKOF4Wwrap vendored zstd seekable in own file, #2 - [*]
JAGXXSR7change: initial work on decoding hunks - [*]
JVU3TTT5all: switch away from typedefing anonymous structs - [*]
PEUS54XQ
Change contents
- edit in meson.build at line 31
'atom.c', - edit in atom.h at line 49
void atomfree(struct atom *); - file addition: atom.c[8.1]
#include <stdlib.h>#include <stddef.h>#include <stdint.h>#include "common.h"#include "hash.h"#include "vertex.h"#include "atom.h"voidatomfree(struct atom *a){switch (a->atomtype) {case NEW_VERTEX:free(a->newvertex.upcontext.entries);free(a->newvertex.downcontext.entries);break;case EDGE_MAP:free(a->edgemap.edges.entries);break;}}