git.samba.org
/
gd
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69d66e6
)
Don't talloc_free() the UUID before we return.
author
Andrew Bartlett
<abartlet@samba.org>
Wed, 12 Mar 2008 22:53:32 +0000
(09:53 +1100)
committer
Andrew Bartlett
<abartlet@samba.org>
Wed, 12 Mar 2008 22:53:32 +0000
(09:53 +1100)
This error caused us to put a 0x80 byte at the end of GUID, which was
only detected by OpenLDAP's schema checking.
Andrew Bartlett
(This used to be commit
fd99b7719bcb503e2695b2cbad0230fa23a094ca
)
source4/scripting/python/uuidmodule.c
patch
|
blob
|
history
diff --git
a/source4/scripting/python/uuidmodule.c
b/source4/scripting/python/uuidmodule.c
index e05b286dd01c3bdfd7edbe1564ca0f8e417e4eda..cd9a1cb4d52f29ee5c5cb05298e9dd2b07750045 100644
(file)
--- a/
source4/scripting/python/uuidmodule.c
+++ b/
source4/scripting/python/uuidmodule.c
@@
-24,6
+24,7
@@
static PyObject *uuid_random(PyObject *self, PyObject *args)
{
struct GUID guid;
+ PyObject *pyobj;
char *str;
if (!PyArg_ParseTuple(args, (char *)""))
@@
-37,9
+38,11
@@
static PyObject *uuid_random(PyObject *self, PyObject *args)
return NULL;
}
+ pyobj = PyString_FromString(str);
+
talloc_free(str);
- return
PyString_FromString(str)
;
+ return
pyobj
;
}
static PyMethodDef methods[] = {