Revert "Fix double free errors in arg.c"

This reverts commit 46f01410d1b6e488795043be7b4e85beb0ac859c.