aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2006-06-15 04:28:13 +0000
committerdanielk1977 <danielk1977@noemail.net>2006-06-15 04:28:13 +0000
commitd1ab1ba5ed68b51fd640a62a228a5b331829d83a (patch)
tree769bdcf5fb172a3192f30465958f9f2cf6c55e76 /src/main.c
parent5aec042e275dee61ceee172e7ec9d32c2d881bd4 (diff)
downloadsqlite-d1ab1ba5ed68b51fd640a62a228a5b331829d83a.tar.gz
sqlite-d1ab1ba5ed68b51fd640a62a228a5b331829d83a.zip
Add void* argument to sqlite3_create_module to replace sqlite3_module.pAux. (CVS 3251)
FossilOrigin-Name: 470a3a0b20775be1226fb4d477c798d8da2d5708
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 526eaed6a..463ba997a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -14,7 +14,7 @@
** other files are for internal use by SQLite and should not be
** accessed by users of the library.
**
-** $Id: main.c,v 1.343 2006/06/14 15:35:37 drh Exp $
+** $Id: main.c,v 1.344 2006/06/15 04:28:13 danielk1977 Exp $
*/
#include "sqliteInt.h"
#include "os.h"
@@ -160,6 +160,10 @@ int sqlite3_close(sqlite3 *db){
}
sqlite3HashClear(&db->aCollSeq);
#ifndef SQLITE_OMIT_VIRTUALTABLE
+ for(i=sqliteHashFirst(&db->aModule); i; i=sqliteHashNext(i)){
+ Module *pMod = (Module *)sqliteHashData(i);
+ sqliteFree(pMod);
+ }
sqlite3HashClear(&db->aModule);
#endif