From 2498427214098ce303a776873f52d918a74557ec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martti=20Rannanj=C3=A4rvi?= Date: Wed, 29 Aug 2018 17:27:58 +0300 Subject: [PATCH] dns: Remove duplicate event_unref() in dns_client_input_args() The event is unreffed at the end of the function also. --- src/dns/dns-client.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/dns/dns-client.c b/src/dns/dns-client.c index 209f486160..78ea2843d1 100644 --- a/src/dns/dns-client.c +++ b/src/dns/dns-client.c @@ -73,7 +73,6 @@ static int dns_client_input_args(struct connection *client, const char *const *a t_strarray_join(array_idx(&tmp, 0), "\t")); o_stream_nsend_str(client->output, "\n"); } - event_unref(&event); } else if (strcmp(args[0], "NAME") == 0) { if (net_addr2ip(args[1], &ip) < 0) { e->add_int("error_code", EAI_FAIL); -- 2.47.3