Skip to content
Snippets Groups Projects
Commit 8fe41860 authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Resolved resource leak.

cov:970741
parent 0c0c8796
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,7 @@
#include <stdlib.h>
#include <ctype.h>
#include <sys/socket.h>
#include <unistd.h>
#include "utils/nsupdate/nsupdate_exec.h"
#include "utils/common/params.h"
......@@ -404,7 +405,7 @@ static int pkt_sendrecv(params_t *params, server_t *srv,
/* Wait for reception. */
int rb = receive_msg(params, KNOT_RRTYPE_SOA, sock, rwire, rlen);
DBG("%s: receive_msg = %d\n", __func__, rb);
shutdown(sock, SHUT_RDWR);
close(sock);
return rb;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment