lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev [PATCH][pre1] more FREE/free action


From: John Bley
Subject: lynx-dev [PATCH][pre1] more FREE/free action
Date: Sat, 8 May 1999 07:40:46 -0400 (EDT)

* Sub a few more free()s with FREE()s (John Bley)

-- 
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/WWW/Library/Implementation/HTString.c 
lynx2-8-2-patched/WWW/Library/Implementation/HTString.c
--- lynx2-8-2/WWW/Library/Implementation/HTString.c     Wed Feb 17 09:29:33 1999
+++ lynx2-8-2-patched/WWW/Library/Implementation/HTString.c     Sat May  8 
07:12:07 1999
@@ -564,8 +564,8 @@ PRIVATE char * StrAllocVsprintf ARGS4(
        }
     }
 
-    free(tmp_ptr);
-    free(fmt_ptr);
+    FREE(tmp_ptr);
+    FREE(fmt_ptr);
     dst_ptr[dst_len] = '\0';
     if (pstr)
        *pstr = dst_ptr;
diff -Burp lynx2-8-2/src/LYReadCFG.c lynx2-8-2-patched/src/LYReadCFG.c
--- lynx2-8-2/src/LYReadCFG.c   Wed May  5 20:33:59 1999
+++ lynx2-8-2-patched/src/LYReadCFG.c   Sat May  8 07:13:35 1999
@@ -617,7 +617,7 @@ static int jumpfile_fun ARGS1(
     HTSprintf0 (&buffer, "JUMPFILE:%s", value);
     if (!LYJumpInit(buffer))
        CTRACE(tfp, "Failed to register %s\n", buffer);
-    free(buffer);
+    FREE(buffer);
 
     return 0;
 }
@@ -1520,7 +1520,7 @@ PRIVATE void do_read_cfg ARGS5(
                    LYUpperCase(buf);
                    fprintf(fp0,"         * %s\n", buf);
                }
-               free(buf);
+               FREE(buf);
            }
 #endif
            do_read_cfg (value, cfg_filename, nesting_level + 1, 
fp0,resultant_set);

reply via email to

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