* src/res.c (res_cleanup): Only compile for DEBUG_MALLOC or TESTING

This commit is contained in:
Tim Rühsen 2020-02-27 19:53:57 +01:00
parent e52e418bdd
commit 765271fdf5

View File

@ -599,6 +599,7 @@ is_robots_txt_url (const char *url)
return ret;
}
#if defined DEBUG_MALLOC || defined TESTING
void
res_cleanup (void)
{
@ -616,6 +617,7 @@ res_cleanup (void)
registered_specs = NULL;
}
}
#endif
#ifdef TESTING