diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2010-06-09 12:17:16 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2010-06-09 12:17:16 +1000 |
commit | ac31d3e2d16f2b037d1c4e42aef76ddbd2fa1d20 (patch) | |
tree | 1f9495859d42033d31a0ae55df6f7fd56bad8054 | |
parent | ac5366d6e1f26e6ceef3d062ab7df301d623cf54 (diff) |
Remove libcwrappers for malloc and free.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/xf86Elo.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/xf86Elo.c b/src/xf86Elo.c index 4077b22..6887a66 100644 --- a/src/xf86Elo.c +++ b/src/xf86Elo.c @@ -990,14 +990,14 @@ xf86EloAllocate(InputDriverPtr drv, IDevPtr dev) LocalDevicePtr local; EloPrivatePtr priv; - priv = xalloc(sizeof(EloPrivateRec)); + priv = malloc(sizeof(EloPrivateRec)); if (!priv) return NULL; local = xf86AllocateInput(drv, 0); if (!local) { - xfree(priv); + free(priv); return NULL; } @@ -1044,8 +1044,8 @@ xf86EloUninit(InputDriverPtr drv, { EloPrivatePtr priv = (EloPrivatePtr) local->private; - xfree(priv->input_dev); - xfree(priv); + free(priv->input_dev); + free(priv); local->private = NULL; xf86DeleteInput(local, 0); } @@ -1090,9 +1090,9 @@ xf86EloInit(InputDriverPtr drv, dev->identifier); if (priv) { if (priv->input_dev) { - xfree(priv->input_dev); + free(priv->input_dev); } - xfree(priv); + free(priv); } return local; } |