[PATCH phosphor-event] interfaceRemoved missing .record
OpenBMC Patches
openbmc-patches at stwcx.xyz
Wed Nov 25 06:00:27 AEDT 2015
From: Chris Austen <austenc at us.ibm.com>
---
event_messaged.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/event_messaged.c b/event_messaged.c
index 07430b0..1512310 100644
--- a/event_messaged.c
+++ b/event_messaged.c
@@ -49,17 +49,16 @@ void message_storage_delete(messageEntry_t *m) {
free(m->association);
free(m->debugbytes);
-
- sd_bus_slot_unref(m->messageslot);
- sd_bus_slot_unref(m->deleteslot);
- sd_bus_emit_object_removed(bus, path);
+ r = sd_bus_emit_object_removed(bus, path);
if (r < 0) {
- fprintf(stderr, "Failed to emit the 2nd delete signal %s\n", strerror(-r));
+ fprintf(stderr, "Failed to emit the delete signal %s\n", strerror(-r));
return;
}
-
+ sd_bus_slot_unref(m->messageslot);
+ sd_bus_slot_unref(m->deleteslot);
+
free(m);
return;
--
2.6.3
More information about the openbmc
mailing list