mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-08 20:59:07 +02:00
radeon/surface: free version after using it.
fixes leak in valgrind. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
d1fcfb17b9
commit
a1d462d2a6
1 changed files with 2 additions and 0 deletions
|
|
@ -191,6 +191,7 @@ static int r6_init_hw_info(struct radeon_surface_manager *surf_man)
|
|||
if (version && version->version_minor >= 14) {
|
||||
surf_man->hw_info.allow_2d = 1;
|
||||
}
|
||||
drmFreeVersion(version);
|
||||
|
||||
switch ((tiling_config & 0xe) >> 1) {
|
||||
case 0:
|
||||
|
|
@ -470,6 +471,7 @@ static int eg_init_hw_info(struct radeon_surface_manager *surf_man)
|
|||
if (version && version->version_minor >= 16) {
|
||||
surf_man->hw_info.allow_2d = 1;
|
||||
}
|
||||
drmFreeVersion(version);
|
||||
|
||||
switch (tiling_config & 0xf) {
|
||||
case 0:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue