forked from mirrors/tftp-hpa-google
Add support for freeing a remap file datastructure, so we avoid a
memory leak.
This commit is contained in:
parent
519eb0ba91
commit
e3570e4d31
3 changed files with 26 additions and 3 deletions
|
@ -395,10 +395,10 @@ main(int argc, char **argv)
|
|||
caught_sighup = 0;
|
||||
if ( listen ) {
|
||||
#ifdef HAVE_REGEX
|
||||
/* This is unfortunately a memory leak. Hopefully
|
||||
SIGHUPs aren't too common. */
|
||||
if ( rewrite_file )
|
||||
if ( rewrite_file ) {
|
||||
freerules(rewrite_rules);
|
||||
rewrite_rules = read_remap_rules(rewrite_file);
|
||||
}
|
||||
#endif
|
||||
} else {
|
||||
/* Return to inetd for respawn */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue