summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2014-03-11 14:20:51 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2014-03-11 17:43:24 +1000
commit4754af9ddbd55c5637b56bd9f37d0d3414c839a8 (patch)
tree1cfc6f2582972e817380515c80ace4b42753edbf /config
parentb972851ce47b5e3b681a212a43dd71aab94e7a1b (diff)
config: only free odev->attrib_name for string types
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'config')
-rw-r--r--config/config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/config.c b/config/config.c
index 7971b8740..4ad733000 100644
--- 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);
}