summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-01-06 02:10:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:20 -0500
commit66bd6142a2fc4679e1d6cc98237a23927dda5f63 (patch)
tree67a5409a52ca6ac0beb20853ea7c1f632eba3173
parent895bc156720d7367a926fe5552ea4f5e68b39677 (diff)
downloadsamba-66bd6142a2fc4679e1d6cc98237a23927dda5f63.tar.gz
samba-66bd6142a2fc4679e1d6cc98237a23927dda5f63.tar.bz2
samba-66bd6142a2fc4679e1d6cc98237a23927dda5f63.zip
r4546: Use talloc_p() instad of talloc()
(This used to be commit 2ec3a137d7fd8a912bc70e865f7a7798190b8869)
-rw-r--r--source4/scripting/swig/dcerpc.i2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/swig/dcerpc.i b/source4/scripting/swig/dcerpc.i
index 27afb6471c..487876c2fb 100644
--- a/source4/scripting/swig/dcerpc.i
+++ b/source4/scripting/swig/dcerpc.i
@@ -313,7 +313,7 @@ void DATA_BLOB_ptr_from_python(TALLOC_CTX *mem_ctx, DATA_BLOB **s,
return;
}
- *s = talloc(mem_ctx, sizeof(DATA_BLOB));
+ *s = talloc_p(mem_ctx, DATA_BLOB);
(*s)->length = PyString_Size(obj);
(*s)->data = PyString_AsString(obj);