summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-07-19 10:47:45 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-07-19 11:32:27 +1000
commitde753ac30874f1c66bdf66d964959cd47c6b81f9 (patch)
tree144544e2d9037084c63cdb1c76c821262cb367ae
parentd743407c0e95194b5745a866b296de862a96515e (diff)
Don't free on init failure, let UnInit take care of it.
Avoid double-frees when the server calls Uninit. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/xf86Elo.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/xf86Elo.c b/src/xf86Elo.c
index cee7557..4e9296e 100644
--- a/src/xf86Elo.c
+++ b/src/xf86Elo.c
@@ -944,12 +944,6 @@ xf86EloInit(InputDriverPtr drv,
if (!str) {
xf86Msg(X_ERROR, "%s: No Device specified in Elographics module config.\n",
pInfo->name);
- if (priv) {
- if (priv->input_dev) {
- free(priv->input_dev);
- }
- free(priv);
- }
return BadValue;
}
priv->input_dev = strdup(str);