提交 2948bf55 编写于 作者: xpxyr's avatar xpxyr 提交者: geniusgogo

fix the SQLite mutex free-fun cause a memory leak

上级 d246db60
......@@ -182,7 +182,7 @@ static sqlite3_mutex *rttMutexAlloc(int iType){
static void rttMutexFree(sqlite3_mutex *p){
assert( p->nRef==0 );
assert( p->id==SQLITE_MUTEX_FAST || p->id==SQLITE_MUTEX_RECURSIVE );
rt_mutex_delete(&p->mutex);
rt_mutex_detach(&p->mutex);
sqlite3_free(p);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册