[libc-commits] [libc] [libc] Declare free_sized and free_aligned_sized in stdlib.h / malloc.h (PR #188364)

via libc-commits libc-commits at lists.llvm.org
Tue Mar 24 14:59:59 PDT 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Fabio D'Urso (fabio-d)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/188364.diff


1 Files Affected:

- (modified) libc/include/stdlib-malloc.yaml (+15) 


``````````diff
diff --git a/libc/include/stdlib-malloc.yaml b/libc/include/stdlib-malloc.yaml
index e1dab21bfc213..0542f5501a6bb 100644
--- a/libc/include/stdlib-malloc.yaml
+++ b/libc/include/stdlib-malloc.yaml
@@ -22,6 +22,21 @@ functions:
     return_type: void
     arguments:
       - type: void *
+  - name: free_aligned_sized
+    standards:
+      - stdc
+    return_type: void
+    arguments:
+      - type: void *
+      - type: size_t
+      - type: size_t
+  - name: free_sized
+    standards:
+      - stdc
+    return_type: void
+    arguments:
+      - type: void *
+      - type: size_t
   - name: malloc
     standards:
       - stdc

``````````

</details>


https://github.com/llvm/llvm-project/pull/188364


More information about the libc-commits mailing list