loader: const fixes
authorFrank Henigman <fjhenigman@chromium.org>
Fri, 25 Nov 2016 01:02:09 +0000 (20:02 -0500)
committerMark Young <marky@lunarg.com>
Thu, 1 Dec 2016 18:38:56 +0000 (11:38 -0700)
commitf59e5ed285f5c38fe815e106c7d28fb1cc53fc6d
treeee856d0fa31ab6a2694244344134cddce92c3eda
parentfea4a11c190356d3bfa0d936f4379c91c441813d
loader: const fixes

Make the 'source_override' parameter of loader_get_manifest_files() const.
The const was removed in 74d013a5, seemingly for convenience of calling
loader_free_getenv(), not because it was incorrect.

Give loader_free_getenv() the same signature in all implementations.

Fix a memory leak where it was possible to exit loader_get_manifest_files()
without calling loader_free_getenv().

Don't pass a potentially NULL value to loader_log().
loader/loader.c