gallium: Fix leak of the merged driconf options.

Fixes: 8a05d6ffc6 ("driconf: Make the driver's declarations be structs instead of XML.")
Reviewed-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7695>
This commit is contained in:
Eric Anholt 2020-11-17 16:37:41 -08:00 committed by Marge Bot
parent 06f2516696
commit 0626e3a950
1 changed files with 1 additions and 0 deletions

View File

@ -120,6 +120,7 @@ pipe_loader_load_options(struct pipe_loader_device *dev)
driParseOptionInfo(&dev->option_info, merged_driconf, merged_count);
driParseConfigFiles(&dev->option_cache, &dev->option_info, 0,
dev->driver_name, NULL, NULL, 0, NULL, 0);
free((void *)merged_driconf);
}
char *