/ Check-in [b078f09b]
Login

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

Overview
Comment:Call sqlite3_free() instead of free() to release a buffer allocated by sqlite3_vmprintf() in test_async.c (test suite bug only). (CVS 3708)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b078f09bffee5863d595d281f2ecd14e1c9ec727
User & Date: danielk1977 2007-03-22 15:20:00
Context
2007-03-22
15:22
In os_unix.c, make a distinction between pread() and pread64(). Add a new compile-time macro USE_PREAD64 to select the latter. (CVS 3709) check-in: 177cd929 user: drh tags: trunk
15:20
Call sqlite3_free() instead of free() to release a buffer allocated by sqlite3_vmprintf() in test_async.c (test suite bug only). (CVS 3708) check-in: b078f09b user: danielk1977 tags: trunk
00:14
Refactor PLWriter to remove owned buffer. DLCollector (Document List Collector) now handles the case where PLWriter (Position List Writer) needed a local buffer. Change to using the associated DLWriter (Document List Writer) buffer, which reduces the number of memory copies needed in doclist processing, and brings PLWriter operation in line with DLWriter operation. (CVS 3707) check-in: d04fa3a1 user: shess tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/test_async.c.

   110    110   static void asyncTrace(const char *zFormat, ...){
   111    111     char *z;
   112    112     va_list ap;
   113    113     va_start(ap, zFormat);
   114    114     z = sqlite3_vmprintf(zFormat, ap);
   115    115     va_end(ap);
   116    116     fprintf(stderr, "[%d] %s", (int)pthread_self(), z);
   117         -  free(z);
          117  +  sqlite3_free(z);
   118    118   }
   119    119   
   120    120   /*
   121    121   ** THREAD SAFETY NOTES
   122    122   **
   123    123   ** Basic rules:
   124    124   **