cmm: fixed bug (double free error) for #undef directive

git-svn-id: svn://kolibrios.org@9714 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Coldy 2022-02-12 12:40:07 +00:00
parent db0f7a7b77
commit 3920d392b0

View File

@ -4844,7 +4844,11 @@ int cmpresult,ocmpresult=0;
if(ptr!=NULL){ //­ ©¤¥­ ®¡ê¥ªâ 㤠«¥­¨ï
if(ptr->newid)free(ptr->newid); //㤠Ť¨âě ¤ŽŻ ¨­äŽŕŹ.
if(ptr->newid){
free(ptr->newid); //㤠«¨âì ¤®¯ ¨­ä®à¬.
// Fixed by Coldy, thx turbocat (double free error)
ptr->newid = NULL;
}
leftptr=ptr->left; //¤¨â¥