Add a simple function to free atom struct resources
KLCGXAVW3J6EYOFFIKZY3NT47EHGTVFMKBSXE5NVG66S74YKVBAAC
EHVLRMEF6YK5FRIV5V7V6P5RHJPCYKMSW5OVKDXLUEWHEM624FBAC
L3HKOF4WYZZLJJY2Q6YJ65WGAB74GQ2A7ICD23M5NQGBP4BXF6DQC
XJ2PEH74CLJUELZBR47QHGUSKXB4Z5T7EKEF6Y4CYY2VBHZXUTDAC
JVU3TTT5T776LB2UNT5DCISJDWOITRSJPRG3CDTX4NDQEHC5VI3QC
JAGXXSR7DR5FG77VKBF62BW7Q3JMVHCLHF4VB2PSLIZF4RLE553QC
PEUS54XQ5KJQYAVUYBG5MWLEHIOVPMZ3ANVC7HPQP6JUWWPRDW5AC
#include <stdlib.h>
#include <stddef.h>
#include <stdint.h>
#include "common.h"
#include "hash.h"
#include "vertex.h"
#include "atom.h"
void
atomfree(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;
}
}