feat 重构stream流API并适配lex_parse和lexer
This commit is contained in:
@@ -57,7 +57,7 @@ static inline void cstring_free(cstring_t *str) {
|
||||
if (str == null) {
|
||||
return;
|
||||
}
|
||||
if (str->data != null && str->cap != 0) {
|
||||
if (str->cap != 0 && str->data != null) {
|
||||
smcc_free(str->data);
|
||||
str->data = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user