Added check on asprintf return.