Fixed misuse of free() instead of plist_free().
Merge branch 'master' into osx