Minor cleanup in location/android.c

This commit is contained in:
twinaphex 2014-10-27 04:05:51 +01:00
parent e9a8573afa
commit 8f095df694

View File

@ -98,7 +98,8 @@ static void *android_location_init(void)
return androidlocation;
dealloc:
free(androidlocation);
if (androidlocation)
free(androidlocation);
return NULL;
}