lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev [PATCH][pre1] LYK_COMMENT leakage


From: John Bley
Subject: lynx-dev [PATCH][pre1] LYK_COMMENT leakage
Date: Fri, 7 May 1999 09:31:28 -0400 (EDT)

* Plug a small leak in LYK_COMMENT code in LYMainLoop.c (John Bley)

For what it's worth, I'm more sure about the bottom being right than the 
top one.

-- 
John Bley - address@hidden
Duke '99 - English/Computer Science
  Since English is a mess, it maps well onto the problem space,
  which is also a mess, which we call reality.     - Larry Wall

diff -Burp lynx2-8-2/src/LYMainLoop.c lynx2-8-2-patched/src/LYMainLoop.c
--- lynx2-8-2/src/LYMainLoop.c  Wed May  5 20:33:59 1999
+++ lynx2-8-2-patched/src/LYMainLoop.c  Fri May  7 09:25:02 1999
@@ -4216,6 +4216,7 @@ if (!LYUseFormsOptions) {
                         *  The address is a URL.  Just follow the link.
                         */
                        StrAllocCopy(newdoc.address, owner_address);
+                       FREE(owner_address);
                        newdoc.internal_link = FALSE;
                    } else {
                        /*
@@ -4247,6 +4248,7 @@ if (!LYUseFormsOptions) {
                                          (kp ? kp : ""), id);
 
                        FREE(tmptitle);
+                       FREE(owner_address);
                        refresh_screen = TRUE;  /* to force a showpage */
                    }
                }

reply via email to

[Prev in Thread] Current Thread [Next in Thread]