diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2022-12-22 02:16:46 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-12-22 02:16:46 +0000 |
commit | ad5012d769ba0ee24a1c364c8c5879c3263d4025 (patch) | |
tree | 1f4f103fa76bd96cd67da06b8444f433339b1484 | |
parent | 6398b85371f92601d618106013637f5086ee528e (diff) | |
parent | 7753fe0d123491daaecdaf87d254bc15be8866d5 (diff) | |
download | goldfish-opengl-ad5012d769ba0ee24a1c364c8c5879c3263d4025.tar.gz |
Merge "Fix memory leak in buildExtensionString"
-rw-r--r-- | system/egl/eglDisplay.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/system/egl/eglDisplay.cpp b/system/egl/eglDisplay.cpp index 3950ffdf..79019c87 100644 --- a/system/egl/eglDisplay.cpp +++ b/system/egl/eglDisplay.cpp @@ -367,6 +367,7 @@ static char *buildExtensionString() asprintf(&finalEGLExts, "%s%s", initialEGLExts, dynamicEGLExtensions.c_str()); + free(initialEGLExts); free((char*)hostExt); return finalEGLExts; } |