Fix a nasty memory leak, which draws the editor nearly unusable, as it quickly
eats all available memory and swap space.
This commit is contained in:
parent
e3e2125a50
commit
6778d98567
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=41107
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= lpe
|
||||
PORTVERSION= 1.2.5
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= editors
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
||||
http://cdsmith.twu.net/opensource/lpe/
|
||||
|
14
editors/lpe/files/patch-src_cfg-core.c
Normal file
14
editors/lpe/files/patch-src_cfg-core.c
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
$FreeBSD$
|
||||
|
||||
--- src/cfg-core.c 2001/04/08 15:27:13 1.1
|
||||
+++ src/cfg-core.c 2001/04/08 15:27:39
|
||||
@@ -62,7 +62,7 @@
|
||||
/*
|
||||
* We search for "\n[name]=" in the lookup table...
|
||||
*/
|
||||
- t_sstring = (char *) malloc (strlen (name) + 5);
|
||||
+ t_sstring = (char *) alloca (strlen (name) + 5);
|
||||
sprintf (t_sstring, "\n%s=", name);
|
||||
if ((t_hentry = strstr (LpeOptionHash, t_sstring)) != NULL)
|
||||
{
|
Loading…
Reference in New Issue
Block a user