*/}}
소스 검색

fix lstPopPointerLeave

YimingWu 3 일 전
부모
커밋
35100c791a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      la_util.c

+ 1 - 1
la_util.c

@@ -930,7 +930,7 @@ void *lstPopPointerLeave(laListHandle *h){
     laListItemPointer *lip;
     void *rev = 0;
     if (!h) return 0;
-    lip = lstPopItem(h); memLeave(lip);
+    lip = lstPopItem(h); if(lip) memLeave(lip);
     rev = lip ? lip->p : 0;
     return rev;
 }