/ Check-in [a36b7fe9]
Login

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

Overview
Comment:Remove an unreachable branch in malloc.c.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a36b7fe92372a13ff0b6e08f1704496045c6f62a
User & Date: drh 2015-10-26 12:55:56
Context
2015-10-26
14:41
When compiling with SQLITE_HAS_CODEC, honor the hexkey= query parameter on URI pathnames in sqlite3_open_v2(). check-in: e0ce3fc0 user: drh tags: trunk
12:55
Remove an unreachable branch in malloc.c. check-in: a36b7fe9 user: drh tags: trunk
2015-10-24
20:31
When creating an automatic-index on a sub-query, add a unique integer to the end of each index key to ensure the entire key is unique. Fix for [8a2adec1]. check-in: bfea226d user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/malloc.c.

   451    451   }
   452    452   
   453    453   /*
   454    454   ** Add the size of memory allocation "p" to the count in
   455    455   ** *db->pnBytesFreed.
   456    456   */
   457    457   static SQLITE_NOINLINE void measureAllocationSize(sqlite3 *db, void *p){
   458         -  if( p ) *db->pnBytesFreed += sqlite3DbMallocSize(db,p);
          458  +  *db->pnBytesFreed += sqlite3DbMallocSize(db,p);
   459    459   }
   460    460   
   461    461   /*
   462    462   ** Free memory that might be associated with a particular database
   463    463   ** connection.
   464    464   */
   465    465   void sqlite3DbFree(sqlite3 *db, void *p){