mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-10-09 15:52:27 +03:00
doc: document that hs_close_stream frees memory
Add explicit documentation that hs_close_stream() will free the stream state after returning any matches.
This commit is contained in:
committed by
Xiang Wang
parent
4fc11cfc65
commit
def9636d01
@@ -479,6 +479,10 @@ hs_error_t HS_CDECL hs_valid_platform(void);
|
||||
|
||||
/**
|
||||
* A parameter passed to this function was invalid.
|
||||
*
|
||||
* This error is only returned in cases where the function can detect an
|
||||
* invalid parameter -- it cannot be relied upon to detect (for example)
|
||||
* pointers to freed memory or other invalid data.
|
||||
*/
|
||||
#define HS_INVALID (-1)
|
||||
|
||||
|
Reference in New Issue
Block a user