[packages/elinks] - added patch - rel 2
witekfl
witekfl at pld-linux.org
Sun Aug 2 18:41:38 CEST 2026
commit 34d53266a377c4bbb271ef977614f68565dcc657
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date: Sun Aug 2 18:41:14 2026 +0200
- added patch
- rel 2
FreePropertyEnum.patch | 21 +++++++++++++++++++++
elinks.spec | 4 +++-
2 files changed, 24 insertions(+), 1 deletion(-)
---
diff --git a/elinks.spec b/elinks.spec
index 382944c..4fc2ca3 100644
--- a/elinks.spec
+++ b/elinks.spec
@@ -56,7 +56,7 @@ Summary(pl.UTF-8): Eksperymentalny Links (tekstowa przeglądarka WWW)
Summary(pt_BR.UTF-8): O links é um browser para modo texto, similar ao lynx
Name: elinks
Version: 0.20.0
-Release: 1
+Release: 2
Epoch: 1
License: GPL v2
Group: Applications/Networking
@@ -64,6 +64,7 @@ Source0: https://github.com/rkd77/elinks/releases/download/v%{version}/%{name}-%
# Source0-md5: 3f75f4aa52cf76a456e1626b3f5b6730
Source1: %{name}.desktop
Source2: links.png
+Patch0: FreePropertyEnum.patch
URL: http://www.elinks.cz/
BuildRequires: bzip2-devel
%{?with_curl:BuildRequires: curl-devel >= 7.66.0}
@@ -149,6 +150,7 @@ keepalive.
%prep
%setup -q
+%patch -P0 -p1
%build
%meson \
diff --git a/FreePropertyEnum.patch b/FreePropertyEnum.patch
new file mode 100644
index 0000000..b048dcb
--- /dev/null
+++ b/FreePropertyEnum.patch
@@ -0,0 +1,21 @@
+commit 149e12354821c05f9a01ca7d80d7327a58d130f9
+Author: Witold Filipczyk <witekfl at poczta.onet.pl>
+Date: Sun Aug 2 18:16:07 2026 +0200
+
+ [quickjs] Free ptab by JS_FreePropertyEnum
+
+diff --git a/src/js/quickjs/urlsearchparams.c b/src/js/quickjs/urlsearchparams.c
+index d086cec4c..0ccb68ed5 100644
+--- a/src/js/quickjs/urlsearchparams.c
++++ b/src/js/quickjs/urlsearchparams.c
+@@ -198,9 +198,7 @@ js_urlSearchParams_constructor(JSContext *ctx, JSValueConst new_target, int argc
+ JS_FreeValue(ctx, vv[1]);
+ JS_FreeValue(ctx, u->map);
+ }
+- if (ptab) {
+- free(ptab);
+- }
++ JS_FreePropertyEnum(ctx, ptab, plen);
+ } else {
+ size_t len;
+ const char *str = JS_ToCStringLen(ctx, &len, argv[0]);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/elinks.git/commitdiff/34d53266a377c4bbb271ef977614f68565dcc657
More information about the pld-cvs-commit
mailing list