Fossil

Check-in [11d0e8118f]
Login

Check-in [11d0e8118f]

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

Overview
Comment:Re-added an atexit free() line which was inadvertently removed from trunk.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | memleak-fixes
Files: files | file ages | folders
SHA3-256: 11d0e8118f5c04ca6b54393aadc6ead0fb92fd3adcbdc2a80a11d04766c2c388
User & Date: stephan 2019-12-22 01:25:31.358
Context
2019-12-23
02:08
Merged in memleak-fixes brach. This fixes several genuine leaks, including 2 in manifest parsing, and cleans up the large work caches during atexit() in order to (A) separate that valgrind noise from the real leaks and (B) leave a better impression on those running valgrind. ... (check-in: 4cf8dbe398 user: stephan tags: trunk)
2019-12-22
01:25
Re-added an atexit free() line which was inadvertently removed from trunk. ... (Closed-Leaf check-in: 11d0e8118f user: stephan tags: memleak-fixes)
2019-12-21
18:24
Moved two decls from an outer scope to the inner scope where they're used. ... (check-in: 2576cf5fd1 user: stephan tags: memleak-fixes)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/main.c.
358
359
360
361
362
363
364

365
366
367
368
369
370
371
  */
  unloadTcl(g.interp, &g.tcl);
#endif
#ifdef FOSSIL_ENABLE_JSON
  cson_value_free(g.json.gc.v);
  memset(&g.json, 0, sizeof(g.json));
#endif

  if(g.db){
    db_close(0);
  }
  manifest_clear_cache();
  content_clear_cache(1);
  rebuild_clear_cache();
  /*







>







358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
  */
  unloadTcl(g.interp, &g.tcl);
#endif
#ifdef FOSSIL_ENABLE_JSON
  cson_value_free(g.json.gc.v);
  memset(&g.json, 0, sizeof(g.json));
#endif
  free(g.zErrMsg);
  if(g.db){
    db_close(0);
  }
  manifest_clear_cache();
  content_clear_cache(1);
  rebuild_clear_cache();
  /*