projects
/
platform
/
upstream
/
xorg-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b972851
)
config: only free odev->attrib_name for string types
author
Peter Hutterer
<peter.hutterer@who-t.net>
Tue, 11 Mar 2014 04:20:51 +0000
(14:20 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Tue, 11 Mar 2014 07:43:24 +0000
(17:43 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
config/config.c
patch
|
blob
|
history
diff --git
a/config/config.c
b/config/config.c
index
7971b87
..
4ad7330
100644
(file)
--- a/
config/config.c
+++ b/
config/config.c
@@
-246,7
+246,8
@@
config_odev_free_attributes(struct OdevAttributes *attribs)
case ODEV_ATTRIB_FD: fd = iter->attrib_value; break;
}
xorg_list_del(&iter->member);
- free(iter->attrib_name);
+ if (iter->attrib_type == ODEV_ATTRIB_STRING)
+ free(iter->attrib_name);
free(iter);
}