don't try to release null pointer.

This commit is contained in:
Vítor Santos Costa 2011-11-30 13:02:44 +00:00
parent 7da303450f
commit dcfdb5e614

View File

@ -1393,7 +1393,8 @@ Yap_clean_tokenizer(TokEntry *tokstart, VarEntry *vartable, VarEntry *anonvartab
LOCAL_Comments = TermNil;
LOCAL_CommentsNextChar = LOCAL_CommentsTail = NULL;
free(LOCAL_CommentsBuff);
LOCAL_CommentsBuff = NULL;
if (LOCAL_CommentsBuff)
LOCAL_CommentsBuff = NULL;
LOCAL_CommentsBuffLim = 0;
}