123456789101112131415
char* called_function() { char *p; p=(char*)malloc(32); return p; } main() { char *p; p=called_function(); /* do some stuff */ free(p); }