[PATCH] Replace strdupa with strdup/free