summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libipq/libipq.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libipq/libipq.c b/libipq/libipq.c
index e3304875..fb65971a 100644
--- a/libipq/libipq.c
+++ b/libipq/libipq.c
@@ -231,7 +231,6 @@ struct ipq_handle *ipq_create_handle(uint32_t flags, uint32_t protocol)
if (h->fd == -1) {
ipq_errno = IPQ_ERR_SOCKET;
- close(h->fd);
free(h);
return NULL;
}