src/url_handlers.c: Fix a memory leak in delete_dns_domain()

We need to free the MySQL result set before doing the second SELECT
query.

Signed-off-by: Andrew Clayton <andrew@dnsandmx.com>