5d556f7 sbus: allow freeing msg through dbus api when using talloc

1 file Authored by pbrezina 7 years ago, Committed by lslebodn 7 years ago,
    sbus: allow freeing msg through dbus api when using talloc
    
    When a talloc-bound message was freed by removing all references
    to it with dbus_message_unref we failed to free the talloc context
    and thus leaking memory or unreferencing invalid message when
    the parent context is freed.
    
    This patch allows to bound dbus message to talloc in the way that
    allows us to free the message by both talloc and dbus api.
    
    Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
    
        
file modified
+51 -0