Fossil SCM

A very simple fix to the annotate memory leak problem.

drh 2011-10-15 10:17 UTC trunk
Commit 9929bab702f99839ee3578fe24b6f57ddb01b2a6
1 file changed -1
-1
--- src/diff.c
+++ src/diff.c
@@ -711,11 +711,10 @@
711711
p->c.nEdit = 0;
712712
p->c.nEditAlloc = 0;
713713
714714
/* Clear out the from file */
715715
free(p->c.aFrom);
716
- blob_zero(pParent);
717716
718717
/* Return no errors */
719718
return 0;
720719
}
721720
722721
--- src/diff.c
+++ src/diff.c
@@ -711,11 +711,10 @@
711 p->c.nEdit = 0;
712 p->c.nEditAlloc = 0;
713
714 /* Clear out the from file */
715 free(p->c.aFrom);
716 blob_zero(pParent);
717
718 /* Return no errors */
719 return 0;
720 }
721
722
--- src/diff.c
+++ src/diff.c
@@ -711,11 +711,10 @@
711 p->c.nEdit = 0;
712 p->c.nEditAlloc = 0;
713
714 /* Clear out the from file */
715 free(p->c.aFrom);
 
716
717 /* Return no errors */
718 return 0;
719 }
720
721

Keyboard Shortcuts

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