Commit e202ebf2 authored by Kyle Brenneman's avatar Kyle Brenneman Committed by GitHub
Browse files

Merge pull request #137 from polarina/memleak

Fix memory leak in LoadVendorsFromConfigDir and __eglMappingInit
parents fe4a3840 e3ab0a24
...@@ -259,6 +259,8 @@ void __eglMappingTeardown(EGLBoolean doReset) ...@@ -259,6 +259,8 @@ void __eglMappingTeardown(EGLBoolean doReset)
/* Tear down all hashtables used in this file */ /* Tear down all hashtables used in this file */
LKDHASH_TEARDOWN(__EGLdisplayInfoHash, LKDHASH_TEARDOWN(__EGLdisplayInfoHash,
__eglDisplayInfoHash, NULL, NULL, EGL_FALSE); __eglDisplayInfoHash, NULL, NULL, EGL_FALSE);
__glvndWinsysDispatchCleanup();
} }
} }
......
...@@ -121,6 +121,7 @@ void LoadVendorsFromConfigDir(const char *dirName) ...@@ -121,6 +121,7 @@ void LoadVendorsFromConfigDir(const char *dirName)
} else { } else {
fprintf(stderr, "ERROR: Could not allocate vendor library path name\n"); fprintf(stderr, "ERROR: Could not allocate vendor library path name\n");
} }
free(entries[i]);
} }
free(entries); free(entries);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment