From: Charles Giessen Date: Wed, 5 Aug 2020 19:45:37 +0000 (-0600) Subject: loader: fix override paths leaking in VerifyAllMetaLayers X-Git-Tag: upstream/v1.2.179~108 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef36eedb0d09fb172b4f4d76217fc7f81281cfa8;p=platform%2Fupstream%2FVulkan-Loader.git loader: fix override paths leaking in VerifyAllMetaLayers Change-Id: Ic1649d72e71fe0b6ff0a950e30e18feb387f5919 --- diff --git a/loader/loader.c b/loader/loader.c index 23911741..65d0edc4 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -2782,6 +2782,9 @@ static void VerifyAllMetaLayers(struct loader_instance *inst, struct loader_laye if (prop->blacklist_layer_names != NULL) { loader_instance_heap_free(inst, prop->blacklist_layer_names); } + if (prop->override_paths != NULL) { + loader_instance_heap_free(inst, prop->override_paths); + } // Remove the current invalid meta-layer from the layer list. Use memmove since we are // overlapping the source and destination addresses.