Fixes "implicit definition of asprintf" warning per `man 3 asprintf`.
Free the pointer &name per `man 3 asprintf`