/ Check-in [ecc6c739]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix leaked filename in case DosOpen() fails. (CVS 5115)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: ecc6c739064922937ce66339f74403a0346aeedd
User & Date: pweilbacher 2008-05-09 19:38:24
Context
2008-05-11
11:07
New test cases to verify that SQLite handles bound NaN, +Inf, and -Inf floating point values correctly. Improvements to the text->real conversion routine so that it generates +Inf and -Inf at appropriate times. Tickets #3101 and #3060. (CVS 5116) check-in: 3ff2f1cd user: drh tags: trunk
2008-05-09
19:38
Fix leaked filename in case DosOpen() fails. (CVS 5115) check-in: ecc6c739 user: pweilbacher tags: trunk
18:03
Re-enable tests that were accidentally disabled by (5112). (CVS 5114) check-in: bf45a3ab user: danielk1977 tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_os2.c.

   714    714                   ulOpenFlags,
   715    715                   ulOpenMode,
   716    716                   (PEAOP2)NULL );
   717    717     free( zNameCp );
   718    718     if( rc != NO_ERROR ){
   719    719       OSTRACE7( "OPEN Invalid handle rc=%d: zName=%s, ulAction=%#lx, ulAttr=%#lx, ulFlags=%#lx, ulMode=%#lx\n",
   720    720                 rc, zName, ulAction, ulFileAttribute, ulOpenFlags, ulOpenMode );
          721  +    free( pFile->pathToDel );
          722  +    pFile->pathToDel = NULL;
   721    723       if( flags & SQLITE_OPEN_READWRITE ){
   722    724         OSTRACE2( "OPEN %d Invalid handle\n", ((flags | SQLITE_OPEN_READONLY) & ~SQLITE_OPEN_READWRITE) );
   723    725         return os2Open( 0, zName, id,
   724    726                         ((flags | SQLITE_OPEN_READONLY) & ~SQLITE_OPEN_READWRITE),
   725    727                         pOutFlags );
   726    728       }else{
   727    729         return SQLITE_CANTOPEN;