mirror of
https://github.com/simon987/libscan.git
synced 2025-04-18 01:36:47 +00:00
Fix memory leak in RAW parsing
This commit is contained in:
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) {
|
if (ret != 0) {
|
||||||
CTX_LOG_ERROR(f->filepath, "Could not open raw file")
|
CTX_LOG_ERROR(f->filepath, "Could not open raw file")
|
||||||
free(buf);
|
free(buf);
|
||||||
|
libraw_close(libraw_lib);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user