[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev [PATCH][pre1] leak in LYBookmark.c
From: |
John Bley |
Subject: |
lynx-dev [PATCH][pre1] leak in LYBookmark.c |
Date: |
Sat, 8 May 1999 02:35:39 -0400 (EDT) |
* Fix typical alloc-fail-return-error-without-free leakage in
save_bookmark_link (LYBookmark.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/src/LYBookmark.c lynx2-8-2-patched/src/LYBookmark.c
--- lynx2-8-2/src/LYBookmark.c Wed May 5 20:33:59 1999
+++ lynx2-8-2-patched/src/LYBookmark.c Sat May 8 02:21:43 1999
@@ -317,6 +317,7 @@ PUBLIC void save_bookmark_link ARGS2(
if ((fp = fopen(filename_buffer, (first_time ? "w" : "a+"))) == NULL) {
LYMBM_statusline(BOOKMARK_OPEN_FAILED);
sleep(AlertSecs);
+ FREE(Title);
FREE(bookmark_URL);
return;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- lynx-dev [PATCH][pre1] leak in LYBookmark.c,
John Bley <=