OSDN Git Service
(root)
/
android-x86
/
external-libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1fcfb1
)
radeon/surface: free version after using it.
author
Dave Airlie
<airlied@redhat.com>
Sun, 17 Jun 2012 08:18:03 +0000
(09:18 +0100)
committer
Dave Airlie
<airlied@redhat.com>
Sun, 17 Jun 2012 08:19:35 +0000
(09:19 +0100)
fixes leak in valgrind.
Signed-off-by: Dave Airlie <airlied@redhat.com>
radeon/radeon_surface.c
patch
|
blob
|
history
diff --git
a/radeon/radeon_surface.c
b/radeon/radeon_surface.c
index
0afd596
..
c80f7f4
100644
(file)
--- 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: