diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2010-02-08 17:01:30 -0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-02-10 13:46:17 -0600 |
commit | 47116d1c90cdac94cb9da270320dcf0d5ce1cfe2 (patch) | |
tree | fe8e5304f0049ed1506bbd3d0130f5d13f35e2c2 /net.c | |
parent | 27a749fb733dc64b7a215998be7f228a09bb27a7 (diff) | |
download | qemu-47116d1c90cdac94cb9da270320dcf0d5ce1cfe2.zip qemu-47116d1c90cdac94cb9da270320dcf0d5ce1cfe2.tar.gz qemu-47116d1c90cdac94cb9da270320dcf0d5ce1cfe2.tar.bz2 |
QMP: Don't leak on connection close
QMP's chardev event callback doesn't call
json_message_parser_destroy() on CHR_EVENT_CLOSED. As the call
to json_message_parser_init() on CHR_EVENT_OPENED allocates memory,
we'are leaking on close.
Fix that by just calling json_message_parser_destroy() on
CHR_EVENT_CLOSED.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'net.c')
0 files changed, 0 insertions, 0 deletions