提交 3afe4cc4 编写于 作者: H Hongze Cheng

fix invalid read

上级 959389ba
......@@ -6032,12 +6032,15 @@ void qDestroyQueryInfo(qinfo_t qHandle) {
qDebug("QInfo:%p dec refCount, value:%d", pQInfo, ref);
if (ref == 0) {
if (pQInfo->fn != NULL) {
assert(pQInfo->param != NULL);
pQInfo->fn(pQInfo->param);
}
_qinfo_free_fn_t fn = pQInfo->fn;
void* param = pQInfo->param;
doDestoryQueryInfo(pQInfo);
if (fn != NULL) {
assert(param != NULL);
fn(param);
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册