Skip to content

Commit

Permalink
dns: Remove duplicate event_unref() in dns_client_input_args()
Browse files Browse the repository at this point in the history
The event is unreffed at the end of the function also.
  • Loading branch information
mrannanj committed Aug 29, 2018
1 parent 21f9b39 commit 2498427
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/dns/dns-client.c
Expand Up @@ -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);
Expand Down

0 comments on commit 2498427

Please sign in to comment.