diff options
author | Dave Airlie <airlied@redhat.com> | 2012-06-17 09:18:03 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-06-17 09:19:35 +0100 |
commit | a1d462d2a6f720538eaf1199a94dd27cd04e8a54 (patch) | |
tree | 8c329e4df228d5d07f5251630a41848b6f8221ea /radeon | |
parent | d1fcfb17b9642ae351b03056a27b328f314ca80a (diff) |
radeon/surface: free version after using it.
fixes leak in valgrind.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'radeon')
-rw-r--r-- | radeon/radeon_surface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/radeon/radeon_surface.c b/radeon/radeon_surface.c index 0afd5965..c80f7f49 100644 --- a/radeon/radeon_surface.c +++ b/radeon/radeon_surface.c @@ -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: |