* src/spider.c (spider_cleanup): Only compile for DEBUG_MALLOC or TESTING

This commit is contained in:
Tim Rühsen 2020-02-27 19:54:48 +01:00
parent 765271fdf5
commit 4588045b28

View File

@ -45,12 +45,14 @@ static struct hash_table *nonexisting_urls_set;
/* Cleanup the data structures associated with this file. */ /* Cleanup the data structures associated with this file. */
#if defined DEBUG_MALLOC || defined TESTING
void void
spider_cleanup (void) spider_cleanup (void)
{ {
if (nonexisting_urls_set) if (nonexisting_urls_set)
string_set_free (nonexisting_urls_set); string_set_free (nonexisting_urls_set);
} }
#endif
/* Remembers broken links. */ /* Remembers broken links. */
void void