[TD-888] add protection while deplayed process mnode msg
This commit is contained in:
parent
ded3469e89
commit
798e7f2c99
|
@ -393,7 +393,7 @@ void sdbCleanUp() {
|
|||
}
|
||||
|
||||
void sdbIncRef(void *handle, void *pObj) {
|
||||
if (pObj == NULL) return;
|
||||
if (pObj == NULL || handle == NULL) return;
|
||||
|
||||
SSdbTable *pTable = handle;
|
||||
int32_t * pRefCount = (int32_t *)(pObj + pTable->refCountPos);
|
||||
|
@ -402,7 +402,7 @@ void sdbIncRef(void *handle, void *pObj) {
|
|||
}
|
||||
|
||||
void sdbDecRef(void *handle, void *pObj) {
|
||||
if (pObj == NULL) return;
|
||||
if (pObj == NULL || handle == NULL) return;
|
||||
|
||||
SSdbTable *pTable = handle;
|
||||
int32_t * pRefCount = (int32_t *)(pObj + pTable->refCountPos);
|
||||
|
|
Loading…
Reference in New Issue