Fossil SCM
Fixing an unnecessary heap accumulation.
Commit
801a759589b626f55df684b2a26f4e788c86f58e
Parent
16397d86259278c…
1 file changed
+1
+1
| --- src/diff.c | ||
| +++ src/diff.c | ||
| @@ -1504,10 +1504,11 @@ | ||
| 1504 | 1504 | /* Webserver */ |
| 1505 | 1505 | maxwidth = 0; |
| 1506 | 1506 | blob_zero(&dump); |
| 1507 | 1507 | sbsDiff(&c, &dump, nContext, width, escHtml); |
| 1508 | 1508 | width = maxwidth; |
| 1509 | + blob_reset(&dump); | |
| 1509 | 1510 | } |
| 1510 | 1511 | sbsDiff(&c, pOut, nContext, width, escHtml); |
| 1511 | 1512 | }else{ |
| 1512 | 1513 | int showLn = (diffFlags & DIFF_LINENO)!=0; |
| 1513 | 1514 | contextDiff(&c, pOut, nContext, showLn, escHtml); |
| 1514 | 1515 |
| --- src/diff.c | |
| +++ src/diff.c | |
| @@ -1504,10 +1504,11 @@ | |
| 1504 | /* Webserver */ |
| 1505 | maxwidth = 0; |
| 1506 | blob_zero(&dump); |
| 1507 | sbsDiff(&c, &dump, nContext, width, escHtml); |
| 1508 | width = maxwidth; |
| 1509 | } |
| 1510 | sbsDiff(&c, pOut, nContext, width, escHtml); |
| 1511 | }else{ |
| 1512 | int showLn = (diffFlags & DIFF_LINENO)!=0; |
| 1513 | contextDiff(&c, pOut, nContext, showLn, escHtml); |
| 1514 |
| --- src/diff.c | |
| +++ src/diff.c | |
| @@ -1504,10 +1504,11 @@ | |
| 1504 | /* Webserver */ |
| 1505 | maxwidth = 0; |
| 1506 | blob_zero(&dump); |
| 1507 | sbsDiff(&c, &dump, nContext, width, escHtml); |
| 1508 | width = maxwidth; |
| 1509 | blob_reset(&dump); |
| 1510 | } |
| 1511 | sbsDiff(&c, pOut, nContext, width, escHtml); |
| 1512 | }else{ |
| 1513 | int showLn = (diffFlags & DIFF_LINENO)!=0; |
| 1514 | contextDiff(&c, pOut, nContext, showLn, escHtml); |
| 1515 |