-
Committer:
Olivier Fourdan
-
Date:
2019-04-10 10:12:37 UTC
-
Revision ID:
git-v1:772e5b0fdfc9dbd8bec070bd0c4c7eb5565df2ee
_IceRead: Avoid possible use-after-free
`_IceRead()` gets called from multiple places which do not expect the
connection to be freed.
Do not free the connection data in `_IceRead()` to avoid potential
use-after-free issue in the various callers.
The connection data will be freed eventually in `ProcessWantToClose()`,
so not freeing it in `_IceRead()` should not introduce an memory leak.
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>