commit | 7753fe0d123491daaecdaf87d254bc15be8866d5 | [log] [tgz] |
---|---|---|
author | John Reck <jreck@google.com> | Wed Dec 21 16:52:52 2022 -0500 |
committer | John Reck <jreck@google.com> | Wed Dec 21 17:04:48 2022 -0500 |
tree | 1aee3cf8111a9cf4f31f97400f519703d1242d2f | |
parent | 972ce87dd7a057913e6da2c064a82cf8a83142b2 [diff] |
Fix memory leak in buildExtensionString Fixes: 263408475 Test: `atest hwui_unit_tests` doesn't report a bunch of leaks Change-Id: I5ad6ac50ff08cd1a3b3e6bf96465f7d5db3eedcd
diff --git a/system/egl/eglDisplay.cpp b/system/egl/eglDisplay.cpp index 3950ffd..79019c8 100644 --- a/system/egl/eglDisplay.cpp +++ b/system/egl/eglDisplay.cpp
@@ -367,6 +367,7 @@ asprintf(&finalEGLExts, "%s%s", initialEGLExts, dynamicEGLExtensions.c_str()); + free(initialEGLExts); free((char*)hostExt); return finalEGLExts; }