lib/plist_find.c: fix a memleak, misc cleanups.
lib/archive.c: fixed memleaks in error paths; misc cleanups.
lib/package_config_files.c: fixed a memleak.
lib/package_unpack.c: fixed two memleaks.
lib/package_script.c: misc cleanups.