aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Ramos Venancio <lauro.venancio@gmail.com>2007-08-13 23:25:13 +0000
committerLauro Ramos Venancio <lauro.venancio@gmail.com>2007-08-13 23:25:13 +0000
commit0cc4c85097fc4d9323df7010930186208b17b5aa (patch)
treedd95512345c09d30af4b70d025e518b6b8ce18db
parent075b8a78ccff60ed0a9690d328063767726cc4cf (diff)
This test has a lot of mallocs and no free. Reduce the number of iteration to reduce the memory usage.
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@41058 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--MultiSource/Applications/spiff/spiff.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/MultiSource/Applications/spiff/spiff.c b/MultiSource/Applications/spiff/spiff.c
index 036349fc..9497ff7a 100644
--- a/MultiSource/Applications/spiff/spiff.c
+++ b/MultiSource/Applications/spiff/spiff.c
@@ -39,7 +39,7 @@ static int _Y_vflag = 0; /* use visual mode */
static int _Y_flags;
#ifdef SMALL_PROBLEM_SIZE
-#define SPIFF_ITER 1000
+#define SPIFF_ITER 700
#else
#define SPIFF_ITER 30000
#endif
@@ -49,7 +49,7 @@ main(argc,argv)
int argc;
char *argv[];
{
- E_edit edit_end = E_NULL;
+ E_edit edit_end;
char *filename[2];
int max_d; /* max number of differences allowed */
@@ -115,9 +115,6 @@ char *argv[];
for(i=0;i<=SPIFF_ITER;i++)
{
- if (edit_end != E_NULL)
- free(edit_end);
-
if (_Y_eflag)
{
edit_end = Q_do_exact(K_gettmax(0),K_gettmax(1),