git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd60e3f
)
auth:credentials: SAFE_FREE() -> krb5_free_string()
author
Pavel Filipenský
<pfilipensky@samba.org>
Thu, 27 Jul 2023 14:28:48 +0000
(16:28 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 28 Jul 2023 10:48:32 +0000
(10:48 +0000)
Reported by Red Hat internal covscan
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
auth/credentials/pycredentials.c
patch
|
blob
|
history
diff --git
a/auth/credentials/pycredentials.c
b/auth/credentials/pycredentials.c
index b87cdc06a932427b70309558a1c38c6c8097335e..bd877941a9a5172031736e1da645b4d80ee88be1 100644
(file)
--- a/
auth/credentials/pycredentials.c
+++ b/
auth/credentials/pycredentials.c
@@
-1589,7
+1589,7
@@
static PyObject *py_ccache_name(PyObject *self, PyObject *unused)
ccc->ccache, &name);
if (ret == 0) {
py_name = PyString_FromStringOrNULL(name);
-
SAFE_FREE(
name);
+
krb5_free_string(ccc->smb_krb5_context->krb5_context,
name);
} else {
PyErr_SetString(PyExc_RuntimeError,
"Failed to get ccache name");