| Age | Commit message (Collapse) | Author | Files | Lines | 
 | 
py_talloc_steal() was implemented as a macro which evaluated it's 2nd
argument twice. It was often called via a macro with a 2nd argument
that was a function call, for example an allocation in
py_talloc_new(). This meant it allocated memory twice, and leaked one
of them.
This re-implements py_talloc_steal() as a function, so that it only
does the allocation once.
 | 
 | 
macro.
 | 
 | 
Use py_talloc_reference in DCE/RPC code, fixes
					access to SAMR pipe.
 | 
 | 
The previous code caused memory leaks, and also caused situations
where talloc_free could be called on pointers with multiple parents
The new approach is to have two functions:
  py_talloc_import : steals the pointer, so it becomes wholly owned by
                     the python object
  py_talloc_reference: uses a reference, so it is owned by both python
                     and C
 | 
 | 
 | 
 | 
Objects, support subtypes of DCE/RPC interfaces properly
 | 
 | 
SWIG-generated ones.
 | 
 | 
 |