mirror of
https://github.com/rfc1036/whois.git
synced 2026-08-31 07:30:22 +00:00
Fix some irrelevant memory leaks
This commit is contained in:
parent
4a5357548d
commit
c6f7ae9162
3
whois.c
3
whois.c
@ -410,12 +410,15 @@ int handle_query(const char *hserver, const char *hport,
|
||||
|
||||
new_server = query_server(server, port, query_string);
|
||||
free(server);
|
||||
if (port)
|
||||
free(port);
|
||||
free(query_string);
|
||||
|
||||
/* recursion is fun */
|
||||
if (!no_recursion && new_server && !strchr(query, ' ')) {
|
||||
printf(_("\n\nFound a referral to %s.\n\n"), new_server);
|
||||
handle_query(new_server, NULL, query, flags);
|
||||
free(new_server);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user