s4:pyrpc: fix talloc hierachie in dcerpc_InterfaceObject
authorStefan Metzmacher <metze@samba.org>
Sun, 5 Jan 2014 17:37:41 +0000 (18:37 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 7 Jan 2014 07:37:34 +0000 (08:37 +0100)
commit4cc3388c034fa43c855fba802a30bbd2e78122be
tree29055c58a93f3bf775a3d41b19fb365a13a4fbf3
parent13ccc5b517e873fe61da4ed7c10b26717aa2fa65
s4:pyrpc: fix talloc hierachie in dcerpc_InterfaceObject

The tevent_context is cached under the connection,
so we need to make sure it stays arround as long as the connection.

Otherwise it will segfault while dereferencing the tevent_context
on deallocation if a secondary connection is arround.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/librpc/rpc/pyrpc.c