clisp/clisp-encoding-leak.patch
Jerry James 3f3e034be0 Add patch to fix undefined behavior (rhbz#2339979)
- Add two patches to fix memory leaks
- Do not force -O1
2025-02-07 12:26:08 -07:00

10 lines
326 B
Diff

--- 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 */