1
0
mirror of https://github.com/simon987/libscan.git synced 2025-04-09 22:06:43 +00:00

Fix memory leak in RAW parsing

This commit is contained in:
simon987 2021-06-09 08:22:21 -04:00
parent ee9c98b488
commit 58c0758301

@ -101,6 +101,7 @@ void parse_raw(scan_raw_ctx_t *ctx, vfile_t *f, document_t *doc) {
if (ret != 0) {
CTX_LOG_ERROR(f->filepath, "Could not open raw file")
free(buf);
libraw_close(libraw_lib);
return;
}