Check result of malloc in app_dial.c