diff options
author | John Ferlan <jferlan@redhat.com> | 2014-11-25 07:42:58 -0500 |
---|---|---|
committer | John Ferlan <jferlan@redhat.com> | 2014-12-02 11:03:40 -0500 |
commit | 121c09a90b860c52baee692c0b61355fdcfe5dbb (patch) | |
tree | 0bc582245ed89f59fe2726582969f74deedfadeb /src/uml | |
parent | 8fb3aee2f87547fcc4856fa5eb0c20cf7c9fa043 (diff) | |
download | libvirt-121c09a90b860c52baee692c0b61355fdcfe5dbb.tar.gz |
Replace virNetworkFree with virObjectUnref
Since virNetworkFree 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.
Diffstat (limited to 'src/uml')
-rw-r--r-- | src/uml/uml_conf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uml/uml_conf.c b/src/uml/uml_conf.c index 9dcd4ae373..7a5d62bf3a 100644 --- a/src/uml/uml_conf.c +++ b/src/uml/uml_conf.c @@ -213,7 +213,7 @@ umlBuildCommandLineNet(virConnectPtr conn, goto error; } bridge = virNetworkGetBridgeName(network); - virNetworkFree(network); + virObjectUnref(network); if (bridge == NULL) goto error; |