瀏覽代碼

add NULL check (#1925)

pull/1941/head
atticus 3 年之前
committed by GitHub
父節點
當前提交
6d20430ccc
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      src/extras/rmem.h

+ 1
- 0
src/extras/rmem.h 查看文件

@ -276,6 +276,7 @@ static void __InsertMemNode(MemPool *const mempool, AllocList *const list, MemNo
mempool->arena.offs += iter->size; mempool->arena.offs += iter->size;
__RemoveMemNode(list, iter); __RemoveMemNode(list, iter);
iter = list->head; iter = list->head;
if (iter == NULL) return;
} }
const uintptr_t inode = ( uintptr_t )node; const uintptr_t inode = ( uintptr_t )node;
const uintptr_t iiter = ( uintptr_t )iter; const uintptr_t iiter = ( uintptr_t )iter;

Loading…
取消
儲存