Fossil SCM
Moved a blob_reset() to fix a leak reported in https://fossil-scm.org/forum/forumpost/6871eaaa07.
Commit
8628cbd428cb507ce67682ec96904553417e631a43afa3dd5d78706d7254c31c
Parent
c865e1a0fcf3e15…
1 file changed
+1
-1
+1
-1
| --- src/import.c | ||
| +++ src/import.c | ||
| @@ -346,14 +346,14 @@ | ||
| 346 | 346 | blob_appendf(&record, "Z %b\n", &cksum); |
| 347 | 347 | db_multi_exec( |
| 348 | 348 | "INSERT OR REPLACE INTO xtag(tname, tcontent)" |
| 349 | 349 | " VALUES(%Q,%Q)", gg.zBranch, blob_str(&record) |
| 350 | 350 | ); |
| 351 | - blob_reset(&record); | |
| 352 | 351 | blob_reset(&cksum); |
| 353 | 352 | } |
| 354 | 353 | |
| 354 | + blob_reset(&record); | |
| 355 | 355 | fossil_free(gg.zPrevBranch); |
| 356 | 356 | gg.zPrevBranch = gg.zBranch; |
| 357 | 357 | gg.zBranch = 0; |
| 358 | 358 | import_reset(0); |
| 359 | 359 | } |
| 360 | 360 |
| --- src/import.c | |
| +++ src/import.c | |
| @@ -346,14 +346,14 @@ | |
| 346 | blob_appendf(&record, "Z %b\n", &cksum); |
| 347 | db_multi_exec( |
| 348 | "INSERT OR REPLACE INTO xtag(tname, tcontent)" |
| 349 | " VALUES(%Q,%Q)", gg.zBranch, blob_str(&record) |
| 350 | ); |
| 351 | blob_reset(&record); |
| 352 | blob_reset(&cksum); |
| 353 | } |
| 354 | |
| 355 | fossil_free(gg.zPrevBranch); |
| 356 | gg.zPrevBranch = gg.zBranch; |
| 357 | gg.zBranch = 0; |
| 358 | import_reset(0); |
| 359 | } |
| 360 |
| --- src/import.c | |
| +++ src/import.c | |
| @@ -346,14 +346,14 @@ | |
| 346 | blob_appendf(&record, "Z %b\n", &cksum); |
| 347 | db_multi_exec( |
| 348 | "INSERT OR REPLACE INTO xtag(tname, tcontent)" |
| 349 | " VALUES(%Q,%Q)", gg.zBranch, blob_str(&record) |
| 350 | ); |
| 351 | blob_reset(&cksum); |
| 352 | } |
| 353 | |
| 354 | blob_reset(&record); |
| 355 | fossil_free(gg.zPrevBranch); |
| 356 | gg.zPrevBranch = gg.zBranch; |
| 357 | gg.zBranch = 0; |
| 358 | import_reset(0); |
| 359 | } |
| 360 |