summaryrefslogtreecommitdiff
path: root/src/block_template.c
diff options
context:
space:
mode:
authorakuchling <akuchling@rivest.dlitz.net>2002-05-24 15:51:21 -0700
committerakuchling <akuchling@rivest.dlitz.net>2002-05-24 15:51:21 -0700
commite976607619f99d532549a01a1bf58fe1ff6b0ac6 (patch)
tree40b5f5373344cc076a1118a76285afb95178f3e4 /src/block_template.c
parenta177d306c5f691702b9efaa1fdbf95515c944973 (diff)
downloadpycrypto-e976607619f99d532549a01a1bf58fe1ff6b0ac6.tar.gz
[project @ akuchling-20020524225121-d7c667dfcda3cee8]
[project @ 2002-05-24 15:51:21 by akuchling] Use canonical functions for allocating/deallocating objects
Diffstat (limited to 'src/block_template.c')
-rw-r--r--src/block_template.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/block_template.c b/src/block_template.c
index 70cd810..373cf6c 100644
--- a/src/block_template.c
+++ b/src/block_template.c
@@ -56,7 +56,7 @@ static ALGobject *
newALGobject(void)
{
ALGobject * new;
- new = PyObject_NEW(ALGobject, &ALGtype);
+ new = PyObject_New(ALGobject, &ALGtype);
new->mode = MODE_ECB;
return new;
}
@@ -66,7 +66,7 @@ ALGdealloc(PyObject *ptr)
{
/* Overwrite the contents of the object */
memset((char *)ptr, 0, sizeof(ALGobject));
- PyObject_DEL(ptr);
+ PyObject_Free(ptr);
}