* Fix minor memory leak.
This commit is contained in:
parent
e9e1a7dfe7
commit
c4ae8c412d
7
src/fd.c
7
src/fd.c
@ -166,6 +166,13 @@ void _zz_fd_fini(void)
|
|||||||
* closed properly, there's a leak, but it's not our problem. */
|
* 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)
|
if(files != static_files)
|
||||||
free(files);
|
free(files);
|
||||||
if(fds != static_fds)
|
if(fds != static_fds)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user