about summary refs log tree commit diff stats
path: root/src/LYLeaks.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2018-12-27 23:59:59 +0000
committerThomas E. Dickey <dickey@invisible-island.net>2018-12-27 23:59:59 +0000
commiteee24ddac89576eaf9efdd3753eb35e1e7bf4a6d (patch)
tree83f2e99fbdd4b0211f136a12ba9122083c4aff87 /src/LYLeaks.c
parent22c60e93992af953cf692dc78dfd1de371c23e82 (diff)
downloadlynx-snapshots-eee24ddac89576eaf9efdd3753eb35e1e7bf4a6d.tar.gz
snapshot of project "lynx", label v2-9-0dev_0d
Diffstat (limited to 'src/LYLeaks.c')
-rw-r--r--src/LYLeaks.c26
1 files changed, 5 insertions, 21 deletions
diff --git a/src/LYLeaks.c b/src/LYLeaks.c
index 3e212760..d082a77b 100644
--- a/src/LYLeaks.c
+++ b/src/LYLeaks.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYLeaks.c,v 1.42 2018/12/27 10:33:52 tom Exp $
+ * $LynxId: LYLeaks.c,v 1.43 2018/12/27 23:48:37 Kamil.Dudka Exp $
  *
  *	Copyright (c) 1994, University of Kansas, All Rights Reserved
  *	(this file was rewritten twice - 1998/1999 and 2003/2004)
@@ -1090,26 +1090,10 @@ static char *LYLeakSAVsprintf(char **dest,
 		mark_realloced(ALp_old, *dest, strlen(*dest) + 1, cp_File, ssi_Line);
 		return (*dest);
 	    }
-	    if (vp_realloced == vp_oldAlloced) {
-		ALp_new->SL_memory.cp_FileName = old_cp_File;
-		ALp_new->SL_memory.ssi_LineNumber = old_ssi_Line;
-		ALp_new->SL_realloc.cp_FileName = cp_File;
-		ALp_new->SL_realloc.ssi_LineNumber = ssi_Line;
-		return (*dest);
-	    }
-	    /* Look up again, list may have changed! - kw */
-	    ALp_old = FindInList(vp_oldAlloced);
-	    if (ALp_old == NULL) {
-		ALp_new->SL_memory.cp_FileName = old_cp_File;
-		ALp_new->SL_memory.ssi_LineNumber = old_ssi_Line;
-		ALp_new->SL_realloc.cp_FileName = cp_File;
-		ALp_new->SL_realloc.ssi_LineNumber = ssi_Line;
-	    } else {
-		ALp_new->SL_memory.cp_FileName = old_cp_File;
-		ALp_new->SL_memory.ssi_LineNumber = old_ssi_Line;
-		ALp_new->SL_realloc.cp_FileName = cp_File;
-		ALp_new->SL_realloc.ssi_LineNumber = ssi_Line;
-	    }
+	    ALp_new->SL_memory.cp_FileName = old_cp_File;
+	    ALp_new->SL_memory.ssi_LineNumber = old_ssi_Line;
+	    ALp_new->SL_realloc.cp_FileName = cp_File;
+	    ALp_new->SL_realloc.ssi_LineNumber = ssi_Line;
 	}
 	return (*dest);
     }