loader: fix override paths leaking in VerifyAllMetaLayers
authorCharles Giessen <charles@lunarg.com>
Wed, 5 Aug 2020 19:45:37 +0000 (13:45 -0600)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Wed, 5 Aug 2020 21:09:10 +0000 (15:09 -0600)
Change-Id: Ic1649d72e71fe0b6ff0a950e30e18feb387f5919

loader/loader.c

index 239117418e3b5d85dd53636417aa32fa40855a01..65d0edc490dd8453002349fd7ec4c5e69571caaa 100644 (file)
@@ -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.