mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
Change the name of the sqlite3_freemem API function to just sqlite3_free. (CVS 1512)
FossilOrigin-Name: f3b80bbb97ed0b0c1cf634068f28f23802ec71a8
This commit is contained in:
@@ -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.199 2004/05/31 18:51:58 drh Exp $
|
||||
** $Id: main.c,v 1.200 2004/05/31 19:34:33 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#include "os.h"
|
||||
@@ -91,7 +91,7 @@ int sqlite3InitCallback(void *pInit, int argc, char **argv, char **azColName){
|
||||
db->init.newTnum = atoi(argv[2]);
|
||||
if( sqlite3_exec(db, argv[3], 0, 0, &zErr) ){
|
||||
corruptSchema(pData, zErr);
|
||||
sqlite3_freemem(zErr);
|
||||
sqlite3_free(zErr);
|
||||
}
|
||||
db->init.iDb = 0;
|
||||
}else{
|
||||
@@ -638,7 +638,7 @@ void sqlite3_interrupt(sqlite *db){
|
||||
** string that is exported from SQLite should have already passed through
|
||||
** sqlite3StrRealloc().
|
||||
*/
|
||||
void sqlite3_freemem(void *p){ free(p); }
|
||||
void sqlite3_free(char *p){ free(p); }
|
||||
|
||||
/*
|
||||
** Windows systems need functions to call to return the sqlite3_version
|
||||
|
Reference in New Issue
Block a user