diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-08-25 14:29:59 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-08-25 23:05:05 +1000 |
commit | 634e06e465be7a8921cb95884ec427f48bf812da (patch) | |
tree | a7e4fac46b60b4ed47a5d0081cfbd5105273acff /testdata/samba3 | |
parent | 9218de4b740427a5f381be59ab00a21b0690fb9e (diff) | |
download | samba-634e06e465be7a8921cb95884ec427f48bf812da.tar.gz samba-634e06e465be7a8921cb95884ec427f48bf812da.tar.bz2 samba-634e06e465be7a8921cb95884ec427f48bf812da.zip |
pytalloc: fixed py_talloc_steal()
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.
Diffstat (limited to 'testdata/samba3')
0 files changed, 0 insertions, 0 deletions