aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2019-08-15 19:51:23 +0100
committerHarry Jeffery <harry@exec64.co.uk>2019-08-15 19:51:23 +0100
commit5d95a33ee50b26fd4bef814090a4e19572be1d78 (patch)
treead5e700534da2cc87dfa071f646cae4cb0d7a080 /src
parenta34b58d2e3d691e1db594b38c21a8f3e099d1b6c (diff)
downloadimv-5d95a33ee50b26fd4bef814090a4e19572be1d78.tar.gz
imv_ipc_create: Fix resource leak
Diffstat (limited to 'src')
-rw-r--r--src/ipc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ipc.c b/src/ipc.c
index 0b42e22..180bf2b 100644
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -82,6 +82,7 @@ struct imv_ipc *imv_ipc_create(void)
unlink(desc.sun_path);
if (bind(sockfd, (struct sockaddr*)&desc, sizeof desc) == -1) {
+ close(sockfd);
return NULL;
}