* Fix minor memory leak.

This commit is contained in:
Sam Hocevar 2007-01-23 12:16:50 +00:00 committed by sam
parent e9e1a7dfe7
commit c4ae8c412d

View File

@ -166,6 +166,13 @@ void _zz_fd_fini(void)
* closed properly, there's a leak, but it's not our problem. */
}
#if defined HAVE_REGEX_H
if(has_include)
regfree(&re_include);
if(has_exclude)
regfree(&re_exclude);
#endif
if(files != static_files)
free(files);
if(fds != static_fds)