summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-06-10 18:39:10 -0700
committerKeith Packard <keithp@keithp.com>2010-06-10 18:39:10 -0700
commit07a093add0b7e40c4d9b9b59273e3ff9e14a88a7 (patch)
treeed1dfc8d0051a15f417d41fa9d3e7f41d131559e /dix
parent84190d20954ef7888e4d96832c2a4b3225b4dfa2 (diff)
parentdc614484f93b67e8b62dbb1bb2fd247fe5a4c850 (diff)
Merge remote branch 'whot/for-keith'
Diffstat (limited to 'dix')
-rw-r--r--dix/inpututils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/dix/inpututils.c b/dix/inpututils.c
index df2ace0bb..8ec80b5e8 100644
--- a/dix/inpututils.c
+++ b/dix/inpututils.c
@@ -357,6 +357,10 @@ DuplicateInputAttributes(InputAttributes *attrs)
goto unwind;
if (attrs->device && !(new_attr->device = strdup(attrs->device)))
goto unwind;
+ if (attrs->pnp_id && !(new_attr->pnp_id = strdup(attrs->pnp_id)))
+ goto unwind;
+ if (attrs->usb_id && !(new_attr->usb_id = strdup(attrs->usb_id)))
+ goto unwind;
new_attr->flags = attrs->flags;
@@ -401,6 +405,8 @@ FreeInputAttributes(InputAttributes *attrs)
free(attrs->product);
free(attrs->vendor);
free(attrs->device);
+ free(attrs->pnp_id);
+ free(attrs->usb_id);
if ((tags = attrs->tags))
while(*tags)