summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting')
-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);