[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev [PATCH][pre2] -selective leak
From: |
John Bley |
Subject: |
lynx-dev [PATCH][pre2] -selective leak |
Date: |
Mon, 10 May 1999 07:18:11 -0400 (EDT) |
* Fix leak with -selective option in HTFile.c (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/HTFile.c
lynx2-8-2-patched/WWW/Library/Implementation/HTFile.c
--- lynx2-8-2/WWW/Library/Implementation/HTFile.c Sat May 8 13:46:28 1999
+++ lynx2-8-2-patched/WWW/Library/Implementation/HTFile.c Mon May 10
07:15:24 1999
@@ -1949,6 +1949,7 @@ PUBLIC int HTLoadFile ARGS4(
if (HTStat(enable_file_name, &stat_info) == -1) {
FREE(filename);
FREE(nodename);
+ FREE(enable_file_name);
return HTLoadError(sink, 403, DISALLOWED_SELECTIVE_ACCESS);
}
}
@@ -2324,6 +2325,7 @@ PUBLIC int HTLoadFile ARGS4(
if (stat(enable_file_name, &file_info) != 0) {
FREE(localname);
FREE(nodename);
+ FREE(enable_file_name);
return HTLoadError(sink, 403,
DISALLOWED_SELECTIVE_ACCESS);
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- lynx-dev [PATCH][pre2] -selective leak,
John Bley <=