]> git.ipfire.org Git - thirdparty/libvirt.git/commit
daemonStreamHandleRead: Rework to follow our coding pattern
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 8 Apr 2016 14:56:28 +0000 (16:56 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 21 Apr 2016 14:29:41 +0000 (16:29 +0200)
commit01acd6f52be8ea3cbf3295bfd4aad12d8d145340
tree6f25c39a6e4e1039430482246eda745549e14fae
parent30898d80d7d3b117ac38ff9bd72df3a3b88e6539
daemonStreamHandleRead: Rework to follow our coding pattern

Usually, we have this 'if() goto cleanup;' pattern in our new
code. It is going to be useful here too. Thing is, there was a
memleak. If there has been an error in
virNetServerProgramSendStreamError() or
virNetServerProgramSendStreamData() created message was never
freed.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
daemon/stream.c