aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormx <ppmx@users.noreply.github.com>2021-06-08 22:11:55 +0200
committerHarry Jeffery <harry@exec64.co.uk>2021-06-24 21:22:13 +0100
commitdeb8b5a86450153b2a8abc3418b6e66691c49896 (patch)
tree0117fc2b4724fa41c6f4a0d2a22fa323eb43f7f1 /src
parentff0b802c03b3b783867118415c4d4e6be9403d24 (diff)
downloadimv-deb8b5a86450153b2a8abc3418b6e66691c49896.tar.gz
fix double-free when backend libjpeg is used
Diffstat (limited to 'src')
-rw-r--r--src/backend_libjpeg.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/backend_libjpeg.c b/src/backend_libjpeg.c
index c9d70df..e67f8e1 100644
--- a/src/backend_libjpeg.c
+++ b/src/backend_libjpeg.c
@@ -33,10 +33,7 @@ static void free_private(void *raw_private)
if (private->fd >= 0) {
munmap(private->data, private->len);
close(private->fd);
- } else {
- free(private->data);
}
- private->data = NULL;
free(private);
}