diff options
author | sobomax <sobomax@FreeBSD.org> | 2001-04-09 15:44:18 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2001-04-09 15:44:18 +0800 |
commit | ca4831d119b01fed77e890907413bc868f12da9b (patch) | |
tree | dd31d490cc95e1e060594034596ce0883455a562 /editors | |
parent | a57b005c856442e2c5e6fa3d0125003dc138582b (diff) | |
download | freebsd-ports-gnome-ca4831d119b01fed77e890907413bc868f12da9b.tar.gz freebsd-ports-gnome-ca4831d119b01fed77e890907413bc868f12da9b.tar.zst freebsd-ports-gnome-ca4831d119b01fed77e890907413bc868f12da9b.zip |
Fix a nasty memory leak, which draws the editor nearly unusable, as it quickly
eats all available memory and swap space.
Diffstat (limited to 'editors')
-rw-r--r-- | editors/lpe/Makefile | 1 | ||||
-rw-r--r-- | editors/lpe/files/patch-src_cfg-core.c | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/editors/lpe/Makefile b/editors/lpe/Makefile index a3df76961336..338057ef4b4b 100644 --- a/editors/lpe/Makefile +++ b/editors/lpe/Makefile @@ -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/ diff --git a/editors/lpe/files/patch-src_cfg-core.c b/editors/lpe/files/patch-src_cfg-core.c new file mode 100644 index 000000000000..f8c556701519 --- /dev/null +++ b/editors/lpe/files/patch-src_cfg-core.c @@ -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) + { |