summaryrefslogtreecommitdiff
path: root/editors/lpe/files
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2001-04-09 07:44:18 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2001-04-09 07:44:18 +0000
commit6778d9856705bcc2b6421ca9d65e33de86ab7e21 (patch)
tree010ea6bdf25374c835e48e1654cd23bff108f33f /editors/lpe/files
parentApparently I broke this package with the bsd.kde.mk introduction. Fix that (diff)
Fix a nasty memory leak, which draws the editor nearly unusable, as it quickly
eats all available memory and swap space.
Notes
Notes: svn path=/head/; revision=41107
Diffstat (limited to 'editors/lpe/files')
-rw-r--r--editors/lpe/files/patch-src_cfg-core.c14
1 files changed, 14 insertions, 0 deletions
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)
+ {