Skip to content

Commit 9ee4be1

Browse files
pprabhu-ossGerrit Code Review
authored and
Gerrit Code Review
committed
Merge "[AndroidEmu] Fine, we won't cleanup libcurl." into emu-master-dev
2 parents 836a105 + c426d52 commit 9ee4be1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

android/curl-support.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ void curl_cleanup() {
4747
} else if (--initCount == 0) {
4848
free(cached_ca_info);
4949
cached_ca_info = NULL;
50-
curl_global_cleanup();
50+
// We know we're leaking memory by not calling curl_global_cleanup.
51+
// We can not guarantee that no threads exist when the program exits
52+
// (e.g. android::base::async has unknown lifetime).
5153
}
5254
}
5355

0 commit comments

Comments
 (0)