1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/auth/credentials
Noel Power a8e10a1249 Decrement references to python objects passed to Py_BuildValue
Py_BuildValue when processing format 'O' will
  'Pass a Python object untouched (except for its reference count,
   which is incremented by one'

Basically this means if you are using a new reference to a PyObject
to pass to BuildValue (to be used with the 'O' format) the reference
*isn't* stolen so you really do need to DECREF it in order to ensure
it gets cleaned up.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2019-02-07 13:44:30 +01:00
..
tests PY3: change shebang to python3 in misc dirs 2018-12-14 18:00:40 +01:00
credentials_internal.h auth/credentials: add cli_credentials_set_password_will_be_nt_hash() and the related logic 2016-12-20 01:11:23 +01:00
credentials_krb5.c krb5_wrap: Add a talloc_ctx to smb_krb5_principal_get_realm() 2018-11-28 17:44:15 +01:00
credentials_krb5.h auth/credentials: also do a shallow copy of the krb5_ccache. 2016-07-22 23:34:20 +02:00
credentials_ntlm.c define DBGC_AUTH class 2018-01-08 03:34:17 +01:00
credentials_secrets.c dbwrap: Remove calls to loadparm 2018-04-24 01:53:19 +02:00
credentials.c auth:credentials: Avoid an 'else' branch 2018-03-01 14:49:45 +01:00
credentials.h cli_credentials: Apply some const 2017-09-16 12:28:17 +02:00
pycredentials.c Decrement references to python objects passed to Py_BuildValue 2019-02-07 13:44:30 +01:00
pycredentials.h pycredentials: Remove PyCredentialCacheContainerObject 2016-03-08 01:58:29 +01:00
samba-credentials.pc.in build: correct package dependencies 2017-04-18 18:54:13 +02:00
wscript_build PY3: fix "TabError: inconsistent use of tabs and spaces" 2018-09-27 01:54:27 +02:00