mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-10-08 15:22:22 +03:00
@@ -1013,6 +1013,7 @@ hs_error_t HS_CDECL hs_close_stream(hs_stream_t *id, hs_scratch_t *scratch,
|
|||||||
report_eod_matches(id, scratch, onEvent, context);
|
report_eod_matches(id, scratch, onEvent, context);
|
||||||
if (unlikely(internal_matching_error(scratch))) {
|
if (unlikely(internal_matching_error(scratch))) {
|
||||||
unmarkScratchInUse(scratch);
|
unmarkScratchInUse(scratch);
|
||||||
|
hs_stream_free(id);
|
||||||
return HS_UNKNOWN_ERROR;
|
return HS_UNKNOWN_ERROR;
|
||||||
}
|
}
|
||||||
unmarkScratchInUse(scratch);
|
unmarkScratchInUse(scratch);
|
||||||
|
Reference in New Issue
Block a user