shithub: scc

ref: b780650286944308871d3fe28c98a41714cae927
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));
}