shithub: scc

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