diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/LYBookmark.c | 4 | ||||
-rw-r--r-- | src/LYDownload.c | 3 | ||||
-rw-r--r-- | src/LYLeaks.c | 26 |
3 files changed, 10 insertions, 23 deletions
diff --git a/src/LYBookmark.c b/src/LYBookmark.c index c3116ef6..ac646914 100644 --- a/src/LYBookmark.c +++ b/src/LYBookmark.c @@ -1,5 +1,5 @@ /* - * $LynxId: LYBookmark.c,v 1.78 2018/03/18 19:27:30 tom Exp $ + * $LynxId: LYBookmark.c,v 1.79 2018/12/27 23:48:37 Kamil.Dudka Exp $ */ #include <HTUtils.h> #include <HTAlert.h> @@ -303,6 +303,7 @@ void save_bookmark_link(const char *address, LYMBM_statusline(CANCELLED); LYSleepMsg(); FREE(bookmark_URL); + BStrFree(tmp_data); return; } } while (!havevisible(string_data->str)); @@ -347,6 +348,7 @@ void save_bookmark_link(const char *address, LYSleepAlert(); FREE(Title); FREE(bookmark_URL); + BStrFree(tmp_data); return; } diff --git a/src/LYDownload.c b/src/LYDownload.c index cf1ea980..fcaba027 100644 --- a/src/LYDownload.c +++ b/src/LYDownload.c @@ -1,4 +1,4 @@ -/* $LynxId: LYDownload.c,v 1.70 2018/05/11 22:57:30 tom Exp $ */ +/* $LynxId: LYDownload.c,v 1.71 2018/12/27 23:48:37 Kamil.Dudka Exp $ */ #include <HTUtils.h> #include <HTParse.h> #include <HTList.h> @@ -456,6 +456,7 @@ void LYDownload(char *line) cleanup: FREE(Line); BStrFree(buffer); + BStrFree(command); return; } 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); } |