summaryrefslogtreecommitdiff
path: root/src/lib/openjpip/auxtrans_manager.c
diff options
context:
space:
mode:
authorEduardo Barretto <edusbarretto@gmail.com>2020-04-16 19:09:40 -0300
committerGitHub <noreply@github.com>2020-04-17 00:09:40 +0200
commit040e142288e90c9c2d46d25d0a27f828f968bb93 (patch)
tree48d747bb1bcdfa12c4b1cc3105e136e0fbfdb868 /src/lib/openjpip/auxtrans_manager.c
parent221a801a97a3ea968a311f7905c18a1eb7f034c4 (diff)
jp3d/jpwl/mj2/jpip: Fix resource leaks (#1226)
This issues were found by cppcheck and coverity.
Diffstat (limited to 'src/lib/openjpip/auxtrans_manager.c')
-rw-r--r--src/lib/openjpip/auxtrans_manager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/openjpip/auxtrans_manager.c b/src/lib/openjpip/auxtrans_manager.c
index eba9870f..8f364b6d 100644
--- a/src/lib/openjpip/auxtrans_manager.c
+++ b/src/lib/openjpip/auxtrans_manager.c
@@ -232,6 +232,9 @@ void * aux_streaming(void *arg)
}
break;
}
+ if (close_socket(connected_socket) != 0) {
+ perror("close");
+ }
}
opj_free(chunk);