Fossil SCM
Re-added an atexit free() line which was inadvertently removed from trunk.
Commit
11d0e8118f5c04ca6b54393aadc6ead0fb92fd3adcbdc2a80a11d04766c2c388
Parent
2576cf5fd13a32b…
1 file changed
+1
+1
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -360,10 +360,11 @@ | ||
| 360 | 360 | #endif |
| 361 | 361 | #ifdef FOSSIL_ENABLE_JSON |
| 362 | 362 | cson_value_free(g.json.gc.v); |
| 363 | 363 | memset(&g.json, 0, sizeof(g.json)); |
| 364 | 364 | #endif |
| 365 | + free(g.zErrMsg); | |
| 365 | 366 | if(g.db){ |
| 366 | 367 | db_close(0); |
| 367 | 368 | } |
| 368 | 369 | manifest_clear_cache(); |
| 369 | 370 | content_clear_cache(1); |
| 370 | 371 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -360,10 +360,11 @@ | |
| 360 | #endif |
| 361 | #ifdef FOSSIL_ENABLE_JSON |
| 362 | cson_value_free(g.json.gc.v); |
| 363 | memset(&g.json, 0, sizeof(g.json)); |
| 364 | #endif |
| 365 | if(g.db){ |
| 366 | db_close(0); |
| 367 | } |
| 368 | manifest_clear_cache(); |
| 369 | content_clear_cache(1); |
| 370 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -360,10 +360,11 @@ | |
| 360 | #endif |
| 361 | #ifdef FOSSIL_ENABLE_JSON |
| 362 | cson_value_free(g.json.gc.v); |
| 363 | memset(&g.json, 0, sizeof(g.json)); |
| 364 | #endif |
| 365 | free(g.zErrMsg); |
| 366 | if(g.db){ |
| 367 | db_close(0); |
| 368 | } |
| 369 | manifest_clear_cache(); |
| 370 | content_clear_cache(1); |
| 371 |