fix the tools build. reported by Utkarsh Anand

This commit is contained in:
christos 2017-05-05 12:21:28 +00:00
parent b62ca4089b
commit 9a21bc9318
1 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: tic.c,v 1.29 2017/05/04 14:07:33 roy Exp $ */
/* $NetBSD: tic.c,v 1.30 2017/05/05 12:21:28 christos Exp $ */
/*
* Copyright (c) 2009, 2010 The NetBSD Foundation, Inc.
@ -32,7 +32,7 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: tic.c,v 1.29 2017/05/04 14:07:33 roy Exp $");
__RCSID("$NetBSD: tic.c,v 1.30 2017/05/05 12:21:28 christos Exp $");
#include <sys/types.h>
#include <sys/queue.h>
@ -587,7 +587,13 @@ main(int argc, char **argv)
free(term->name);
free(term);
}
#ifndef HAVE_NBTOOL_CONFIG_H
/*
* hdestroy1 is not standard but we don't really care if we
* leak in the tools version
*/
hdestroy1(free, NULL);
#endif
return EXIT_SUCCESS;
}