diff options
-rw-r--r-- | src/wcmConfig.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/wcmConfig.c b/src/wcmConfig.c index 3c183f0..f8aac5a 100644 --- a/src/wcmConfig.c +++ b/src/wcmConfig.c @@ -444,17 +444,11 @@ SetupProc_fail: /* restart the device list from the next one */ if (common && priv) common->wcmDevices = priv->next; - free(common); - free(priv); - if (pInfo) - { - if (pInfo->fd != -1) - { - close(pInfo->fd); - pInfo->fd = -1; - } - pInfo->private = NULL; + if (pInfo && pInfo->fd != -1) + { + close(pInfo->fd); + pInfo->fd = -1; } return BadMatch; |