mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
d53424731f
This can cause a memory leak if the call is terminated before we have managed to respond to the client. (and the call is talloc_free()d but the data is still hanging off ctdb) instead we must talloc_steal() the data and hang it off the call structure to avoid the memory leak. In order to do this we must also change the call structure that is passed into ctdb_call_local() to be allocated through talloc(). This structure was previously either a static variable, or an element of a larger talloc()ed structure (ctdb_call_state or ctdb_client_call_state) so we must change all creations of a ctdb_call into explicitely creating it through talloc() (This used to be ctdb commit 4becf32aea088a25686e8bc330eb47d85ae0ef8f) |
||
---|---|---|
.. | ||
cmdline.h | ||
ctdb_private.h | ||
ctdb.h | ||
idtree.h | ||
includes.h |