diff options
author | Matthieu Herrb <matthieu@deville.herrb.net> | 2008-11-21 19:59:22 +0100 |
---|---|---|
committer | Matthieu Herrb <matthieu@deville.herrb.net> | 2008-11-21 20:01:42 +0100 |
commit | e7e3cd9bed2bfeb848d62062d0859aa813bf786d (patch) | |
tree | e232aab0f0480916355ccb881b5998fd16573846 | |
parent | c98bc45557174f771b031d4a003b54d06b857785 (diff) |
prevent a double free of mouse private structure.
Mark pInfo->private as NULL after freeing it on the error path.
-rw-r--r-- | src/bsd_mouse.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bsd_mouse.c b/src/bsd_mouse.c index 886a6ff..ede7612 100644 --- a/src/bsd_mouse.c +++ b/src/bsd_mouse.c @@ -464,6 +464,7 @@ wsconsPreInit(InputInfoPtr pInfo, const char *protocol, int flags) else { xf86Msg(X_ERROR, "%s: cannot open input device\n", pInfo->name); xfree(pMse); + pInfo->private = NULL; return FALSE; } } |