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:
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user