diff options
| author | geniusgogo <[email protected]> | 2013-11-23 23:45:09 +0800 |
|---|---|---|
| committer | geniusgogo <[email protected]> | 2013-11-30 15:00:17 +0800 |
| commit | 2948bf55f776292d23b88effd14653ecfd039db1 (patch) | |
| tree | ed7fc3a6a0fd1acf25961e3fedcd551ef630aabc /components | |
| parent | d246db603c1a9c02c23fb32967efe61d312385d0 (diff) | |
fix the SQLite mutex free-fun cause a memory leak
Diffstat (limited to 'components')
| -rw-r--r-- | components/external/SQLite-3.8.1/src/mutex_rtt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/external/SQLite-3.8.1/src/mutex_rtt.c b/components/external/SQLite-3.8.1/src/mutex_rtt.c index 1b1686794c..ea47b41ed1 100644 --- a/components/external/SQLite-3.8.1/src/mutex_rtt.c +++ b/components/external/SQLite-3.8.1/src/mutex_rtt.c @@ -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); } |
