Fossil SCM

Fixing an unnecessary heap accumulation.

viriketo 2012-03-18 19:46 UTC annotate_links
Commit 801a759589b626f55df684b2a26f4e788c86f58e
1 file changed +1
+1
--- src/diff.c
+++ src/diff.c
@@ -1504,10 +1504,11 @@
15041504
/* Webserver */
15051505
maxwidth = 0;
15061506
blob_zero(&dump);
15071507
sbsDiff(&c, &dump, nContext, width, escHtml);
15081508
width = maxwidth;
1509
+ blob_reset(&dump);
15091510
}
15101511
sbsDiff(&c, pOut, nContext, width, escHtml);
15111512
}else{
15121513
int showLn = (diffFlags & DIFF_LINENO)!=0;
15131514
contextDiff(&c, pOut, nContext, showLn, escHtml);
15141515
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button