Moved two lines, free memory in different spot, change what are freeing

After *v = *dyn, then they both have the same memory location.  Then free(dyn) basically freed v, since at that point they are the same.  Make sense?
Merge pull request #1 from danslinger/patch-1

Moved two lines, free memory in different spot, change what are freeing