Fix double free errors in arg.c