diff options
author | Evan Hunter <evan@ozhiker.com> | 2016-09-26 20:07:10 +0100 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2016-09-28 10:34:09 +1000 |
commit | 43376e1ddb50a670d1ed016c9641fe3ee7dcee41 (patch) | |
tree | b334e52743f0ed0ee922793f20c1c9ac6c5a3fb7 | |
parent | 5307ca6a3a9c929914f76447b9f3a5a8a49d8fa2 (diff) | |
download | jimtcl-43376e1ddb50a670d1ed016c9641fe3ee7dcee41.zip jimtcl-43376e1ddb50a670d1ed016c9641fe3ee7dcee41.tar.gz jimtcl-43376e1ddb50a670d1ed016c9641fe3ee7dcee41.tar.bz2 |
sqlite3: Ensure all allocation goes through Jim_Alloc, Jim_Realloc & Jim_Free
-rw-r--r-- | sqlite3/jim-sqlite3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sqlite3/jim-sqlite3.c b/sqlite3/jim-sqlite3.c index 7b09a9a..260f1ee 100644 --- a/sqlite3/jim-sqlite3.c +++ b/sqlite3/jim-sqlite3.c @@ -903,7 +903,7 @@ static char *local_getline(char *zPrompt, FILE *in){ while( !eol ){ if( n+100>nLine ){ nLine = nLine*2 + 100; - zLine = realloc(zLine, nLine); + zLine = Jim_Realloc(zLine, nLine); if( zLine==0 ) return 0; } if( fgets(&zLine[n], nLine - n, in)==0 ){ @@ -922,7 +922,7 @@ static char *local_getline(char *zPrompt, FILE *in){ eol = 1; } } - zLine = realloc( zLine, n+1 ); + zLine = Jim_Realloc( zLine, n+1 ); return zLine; } |