[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev [dev.14] minor memory dribble
From: |
Kim DeVaughn |
Subject: |
lynx-dev [dev.14] minor memory dribble |
Date: |
Wed, 27 Jan 1999 04:45:06 -0800 |
Whilst checking my previously posted textarea edit patch for memory
leaks (didn't see any), I did see a small one elsewhere. It's very
minor, and given the comment near the offending code, I dunno if it's
worth doing anything about.
Anyway, FWIW, here's the blurb, and a fragment of nearby code:
Memory leak detected.
Pointer: 0x149300
Contains:: LYNX_VERSION=2.8.2dev.14|
ByteSize: 25
FileName: ./LYMain.c
LineCount: 754
realloced: ./LYMain.c
LineCount: 755
Total memory leakage this run: 25
lines LYMain.c:754 and :755 marked "==>"
#ifdef VMS
Define_VMSLogical("LYNX_VERSION", LYNX_VERSION);
#else
==> StrAllocCopy(lynx_version_putenv_command, "LYNX_VERSION=");
==> StrAllocCat(lynx_version_putenv_command, LYNX_VERSION);
(void) putenv(lynx_version_putenv_command);
/* Note: you must not free the data passed to 'putenv()' until you give it
* a new value for that variable.
*/
#endif /* VMS */
if ((cp = getenv("LYNX_TEMP_SPACE")) != NULL)
StrAllocCopy(lynx_temp_space, cp);
/kim
==================================================
"Never allow your umask to pee on your leg." --Me
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- lynx-dev [dev.14] minor memory dribble,
Kim DeVaughn <=