handle calloc() error from sml_value_init()