shithub: scc

ref: 94f23734015424515144b54f0a9f9d6c9d2f34c2
dir: /src/libmach/coff32/coff32del.c/

View raw version
#include <stdio.h>
#include <stdlib.h>

#include <scc/mach.h>

#include "../libmach.h"
#include "coff32.h"

void
coff32del(Obj *obj)
{
	struct coff32 *coff = obj->data;

	if (coff) {
		free(coff->scns);
		free(coff->ents);
		free(coff->strtbl);
	}
	free(obj->data);
	obj->data = NULL;
}