[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev memory leak in LYHistory.c
From: |
Leonid Pauzner |
Subject: |
lynx-dev memory leak in LYHistory.c |
Date: |
Wed, 6 Nov 2002 18:21:55 +0300 (MSK) |
While running with LY_FIND_LEAKS a memory leak discovered somethere in the
"history stack". It may be seen when you follow deep into the links
and then press PREV_DOC key several times (as much as possible).
This probably related to 2001-02-26 track record - no more changes in this
area during the last 4 years or so. Since the invention of "nhist_extra"
I do not understand this code any more.
2001-02-26 (2.8.4dev.19)
...
* implement an action NEXT_DOC, which undoes what PREV_DOC (usually on the
Left-arrow key) does -IZ
Possible enhancements:
a) make HISTORY show the position on the (no more!) "stack".
b) several places in the source use the value of nhist (they scan
history?). Make nhist_extra public, and check whether these
places want nhist + nhist_extra instead.
c) Currently LYpop() and (some) LYpush() erases "the tail" of the
stack. Maybe some callers would prefer a different semantic...
...
Memory leak detected.
Pointer: 28584c
Contains: file://localhost/d:/|
ByteSize: 21
FileName: LYHistory.c
LineCount: 390
Memory leak detected.
Pointer: 2819fc
Contains: d:\ directory|
ByteSize: 14
FileName: LYCharUtils.c
LineCount: 3513
Memory leak detected.
Pointer: 28a494
Contains: file://localhost/d:/%24text|
ByteSize: 28
FileName: LYHistory.c
LineCount: 390
Memory leak detected.
Pointer: 28a44c
Contains: d:\$text directory|
ByteSize: 19
FileName: LYCharUtils.c
LineCount: 3513
Memory leak detected.
Pointer: 280714
Contains: file://localhost/d:/|
ByteSize: 21
FileName: LYHistory.c
LineCount: 390
Memory leak detected.
Pointer: 28a844
Contains: d:\ directory|
ByteSize: 14
FileName: LYCharUtils.c
LineCount: 3513
Memory leak detected.
Pointer: 28a35c
Contains: file://localhost/d:/%24text|
ByteSize: 28
FileName: LYHistory.c
LineCount: 390
Memory leak detected.
Pointer: 28b694
Contains: d:\$text directory|
ByteSize: 19
FileName: LYCharUtils.c
LineCount: 3513
Memory leak detected.
Pointer: 28c3c4
Contains: file://localhost/d:/|
ByteSize: 21
FileName: LYHistory.c
LineCount: 390
Memory leak detected.
Pointer: 25b8c4
Contains: d:\ directory|
ByteSize: 14
FileName: LYCharUtils.c
LineCount: 3513
Memory leak detected.
Pointer: 28c664
Contains: file://localhost/d:/%24text|
ByteSize: 28
FileName: LYHistory.c
LineCount: 390
Memory leak detected.
Pointer: 28b6bc
Contains: d:\$text directory|
ByteSize: 19
FileName: LYCharUtils.c
LineCount: 3513
Memory leak detected.
Pointer: 2826c4
Contains: file://localhost/d:/|
ByteSize: 21
FileName: LYHistory.c
LineCount: 390
Memory leak detected.
Pointer: 287244
Contains: d:\ directory|
ByteSize: 14
FileName: LYCharUtils.c
LineCount: 3513
Memory leak detected.
Pointer: 273d64
Contains: file://localhost/d:/504|
ByteSize: 24
FileName: LYHistory.c
LineCount: 390
Memory leak detected.
Pointer: 273d1c
Contains: d:\504 directory|
ByteSize: 17
FileName: LYCharUtils.c
LineCount: 3513
Memory leak detected.
Pointer: 26dfc4
Contains: file://localhost/d:/504/lynx|
ByteSize: 29
FileName: LYHistory.c
LineCount: 390
Memory leak detected.
Pointer: 26525c
Contains: d:\504\lynx directory|
ByteSize: 22
FileName: LYCharUtils.c
LineCount: 3513
Memory leak detected.
Pointer: 26fe84
Contains: file://localhost/d:/504/lynx/more-opt|
ByteSize: 38
FileName: LYHistory.c
LineCount: 390
Memory leak detected.
Pointer: 25b804
Contains: d:\504\lynx\more-opt directory|
ByteSize: 31
FileName: LYCharUtils.c
LineCount: 3513
Memory leak detected.
Pointer: 2645ec
Contains: file://localhost/d:/504/lynx/more-opt/leaks.ok|
ByteSize: 47
FileName: LYHistory.c
LineCount: 390
Memory leak detected.
Pointer: 264594
Contains: d:\504\lynx\more-opt\leaks.ok directory|
ByteSize: 40
FileName: LYCharUtils.c
LineCount: 3513
Memory leak detected.
Pointer: 25b574
Contains: file://localhost/d:/504/lynx/more-opt/leaks.ok|
ByteSize: 47
FileName: ../../Library/Implementation/HTParse.c
LineCount: 481
Memory leak detected.
Pointer: 23ed4c
Contains: file://localhost/d:/504/lynx/more-opt/leaks.ok|
ByteSize: 47
FileName: ../../Library/Implementation/HTParse.c
LineCount: 481
Total memory leakage this run: 623
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden
- lynx-dev more memory optimizations (patch10), Leonid Pauzner, 2002/11/03
- Re: lynx-dev more memory optimizations (patch10), Thomas Dickey, 2002/11/03
- Re: lynx-dev optimization Re: internal links (patch11), Leonid Pauzner, 2002/11/04
- Re: lynx-dev optimization Re: internal links (patch11), Philip Webb, 2002/11/04
- Re: lynx-dev optimization Re: internal links (patch11), Stef Caunter, 2002/11/04
- Re: lynx-dev optimization Re: internal links (patch11), Frédéric L . W . Meunier, 2002/11/05
- Re: lynx-dev optimization Re: internal links (patch11), Philip Webb, 2002/11/05
Re: lynx-dev more memory optimizations (patch10), Leonid Pauzner, 2002/11/04