don't try to release null pointer.
This commit is contained in:
parent
7da303450f
commit
dcfdb5e614
@ -1393,6 +1393,7 @@ Yap_clean_tokenizer(TokEntry *tokstart, VarEntry *vartable, VarEntry *anonvartab
|
|||||||
LOCAL_Comments = TermNil;
|
LOCAL_Comments = TermNil;
|
||||||
LOCAL_CommentsNextChar = LOCAL_CommentsTail = NULL;
|
LOCAL_CommentsNextChar = LOCAL_CommentsTail = NULL;
|
||||||
free(LOCAL_CommentsBuff);
|
free(LOCAL_CommentsBuff);
|
||||||
|
if (LOCAL_CommentsBuff)
|
||||||
LOCAL_CommentsBuff = NULL;
|
LOCAL_CommentsBuff = NULL;
|
||||||
LOCAL_CommentsBuffLim = 0;
|
LOCAL_CommentsBuffLim = 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user