Backed out changeset 4230d328b65f (bug 801571) for memory leaks.
Bug 801571 - Override vasprintf and asprint for Android platform to avoid the mismatch of malloc()/free(). r=glandium