Fix type and wrong call to malloc() in verbose_try_malloc()
Don't use xstrndup() to copy reg_pat