mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-14 20:00:42 +00:00
18 lines
208 B
Plaintext
18 lines
208 B
Plaintext
// No need checking against NULL for XMALLOC/XCALLOC.
|
|
// If that happens, we have more problems with memory.
|
|
|
|
@@
|
|
type T;
|
|
T *ptr;
|
|
@@
|
|
|
|
ptr =
|
|
(
|
|
XCALLOC(...)
|
|
|
|
|
XMALLOC(...)
|
|
)
|
|
...
|
|
- if (ptr == NULL)
|
|
- return ...;
|