mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
Remove bogus unref in virDBusMessageRead
The virDBusMessageRead method should not have side-effects on the message parameter passed in, so unref'ing it is wrong. The caller should unref only when they decided they are done with it. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
bd93dea3f7
commit
dc7f3ffc02
@ -1421,7 +1421,6 @@ int virDBusMessageRead(DBusMessage *msg,
|
|||||||
ret = virDBusMessageDecodeArgs(msg, types, args);
|
ret = virDBusMessageDecodeArgs(msg, types, args);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
|
|
||||||
dbus_message_unref(msg);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user