[libc-commits] [libc] [libc] Copy the path in posix_spawn_file_actions_addopen (PR #239224)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Wed Nov 18 16:16:17 PST 2026
================
@@ -25,15 +34,29 @@ struct BaseSpawnFileAction {
ActionType type;
BaseSpawnFileAction *next;
- static void add_action(posix_spawn_file_actions_t *actions,
- BaseSpawnFileAction *act) {
+ /// Frees memory allocated for any of the actions. This is deliberately not
+ /// the sized version, as SpawnFileOpenAction allocations are larger than the
+ /// type.
+ LIBC_INLINE static void operator delete(void *ptr) noexcept {
+ ::operator delete(ptr);
+ }
----------------
michaelrj-google wrote:
since you removed the operator new is this still necessary?
https://github.com/llvm/llvm-project/pull/239224
More information about the libc-commits
mailing list