Fix freeing the wrong thing.
Merge pull request #2 from dchest/free

Fix freeing the wrong thing.