Add patch to fix undefined behavior (rhbz#2339979)

- Add two patches to fix memory leaks
- Do not force -O1
This commit is contained in:
Jerry James 2025-02-07 12:26:08 -07:00
commit 3f3e034be0
4 changed files with 115 additions and 5 deletions

10
clisp-encoding-leak.patch Normal file
View file

@ -0,0 +1,10 @@
--- src/encoding.d.orig 2024-12-28 00:47:59.000000000 -0700
+++ src/encoding.d 2025-02-04 20:28:22.743346018 -0700
@@ -2592,6 +2592,7 @@ local maygc object encoding_from_name (c
pushSTACK(STACK_0);
}
}
+ free(name);
#else
unused const_name; unused context;
pushSTACK(unbound); /* :charset */