aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
blob: 436a30498c7917937c1a3fee4227167b013d0c0a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include <stdlib.h>

#include "util.h"

void
free_arr(void **arr, int n) {
	while (n-- > 0) {
		free(arr[n]);
	}
	free(arr);
}