aboutsummaryrefslogtreecommitdiffstats
path: root/libexec_destroy_result.c
blob: 0587c3b3b6b9482d260ddc44f253df45bdd02bce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* See LICENSE file for copyright and license details. */
#include "common.h"
#ifndef TEST


void
libexec_destroy_result(struct libexec_result *result)
{
	if (!result)
		return;

	free(result->exit_statuses);
	result->exit_statuses = NULL;
	result->proc_count = 0;
}


#else
LIBEXEC_CONST__ int main(void) {return 0;} /* TODO test */
#endif