aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/sacn.c
diff options
context:
space:
mode:
Diffstat (limited to 'backends/sacn.c')
-rw-r--r--backends/sacn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/backends/sacn.c b/backends/sacn.c
index 9a3202d..57ac789 100644
--- a/backends/sacn.c
+++ b/backends/sacn.c
@@ -117,6 +117,7 @@ static int sacn_listener(char* host, char* port, uint8_t fd_flags){
//store fd
global_cfg.fd = realloc(global_cfg.fd, (global_cfg.fds + 1) * sizeof(sacn_fd));
if(!global_cfg.fd){
+ close(fd);
fprintf(stderr, "Failed to allocate memory\n");
return -1;
}