Android 4.0.2 release 1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEABECAAYFAk7vyXwACgkQ6K0/gZqxDnj3SQCfS3VhvwbQvNEKi1N+4CyE2st6
9+wAnA8rIa7Mb7RUYuHLO1+wtLXAuvm4
=6AmG
-----END PGP SIGNATURE-----
Fix cleanup
(cherry-picked from ics-mr1)

The code was attempting to null out a struct member after freeing
the struct.

Also, changed the order of directory permission tests so that
writable comes first.  Somehow "dalvik-cache directory not
writable" seems more direct than "not readable", since the code
isn't generally interested in reading the directory.

Bug 5549907

Change-Id: If737ab822b356aae98e47292d21946e33a04342b
1 file changed