summaryrefslogtreecommitdiff
path: root/src/hash_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/hash_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/hash_template.c')
-rw-r--r--src/hash_template.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash_template.c b/src/hash_template.c
index e1109e0..9eef23b 100644
--- a/src/hash_template.c
+++ b/src/hash_template.c
@@ -39,7 +39,7 @@ newALGobject(void)
{
ALGobject *new;
- new = PyObject_NEW(ALGobject, &ALGtype);
+ new = PyObject_New(ALGobject, &ALGtype);
return new;
}
@@ -50,7 +50,7 @@ ALG_dealloc(PyObject *ptr)
{
/* Overwrite the contents of the object */
memset((char *)ptr, 0, sizeof(ALGobject));
- PyObject_DEL(ptr);
+ PyObject_Free(ptr);
}