Replace virStreamFree with virObjectUnref

Since virStreamFree will call virObjectUnref anyway, let's just use that
directly so as to avoid the possibility that we inadvertently clear out
a pending error message when using the public API.
This commit is contained in:
John Ferlan
2014-12-02 11:03:41 -05:00
parent adbbff5fb7
commit 1725a468f6
6 changed files with 8 additions and 15 deletions
+1 -1
View File
@@ -5414,7 +5414,7 @@ remoteDispatchDomainMigratePrepareTunnel3Params(virNetServerPtr server ATTRIBUTE
virStreamAbort(st);
daemonFreeClientStream(client, stream);
} else {
virStreamFree(st);
virObjectUnref(st);
}
}
return rv;