shithub: scc

ref: f12340649ae0ee8b3e2f5ccdb2fcdaf10ec7bf67
dir: /src/libmach/objdel.c/

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

#include <scc/mach.h>

#include "libmach.h"

void
objdel(Obj *obj)
{
	free(obj->secs);
	free(obj->syms);

	obj->syms = NULL;
	obj->secs = NULL;
	memset(obj->htab, 0, sizeof(obj->htab));
}