MCPcopy Create free account
hub / github.com/apache/cloudberry / mm_alloc

Function mm_alloc

src/interfaces/ecpg/preproc/type.c:12–21  ·  view source on GitHub ↗

malloc + error check */

Source from the content-addressed store, hash-verified

10
11/* malloc + error check */
12void *
13mm_alloc(size_t size)
14{
15 void *ptr = malloc(size);
16
17 if (ptr == NULL)
18 mmfatal(OUT_OF_MEMORY, "out of memory");
19
20 return ptr;
21}
22
23/* strdup + error check */
24char *

Callers 14

new_variableFunction · 0.85
add_variable_to_headFunction · 0.85
add_variable_to_tailFunction · 0.85
add_include_pathFunction · 0.85
add_preprocessor_defineFunction · 0.85
mainFunction · 0.85
push_assignmentFunction · 0.85
add_descriptorFunction · 0.85
sqlda_variableFunction · 0.85
ECPGmake_struct_memberFunction · 0.85
ECPGmake_simple_typeFunction · 0.85
ECPGdump_a_simpleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected