summaryrefslogtreecommitdiffstats
path: root/Objects/stringobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-03-27 17:31:02 (GMT)
committerGuido van Rossum <guido@python.org>1992-03-27 17:31:02 (GMT)
commit719f5fa86a681e38ad35a11338993a91b579a64e (patch)
tree923027dddf4a26a18e462a6c0d4aa8852f040b27 /Objects/stringobject.c
parentdcc6ef2144b17ea971c5a5ef007c4bb9e8034bfd (diff)
downloadcpython-719f5fa86a681e38ad35a11338993a91b579a64e.zip
cpython-719f5fa86a681e38ad35a11338993a91b579a64e.tar.gz
cpython-719f5fa86a681e38ad35a11338993a91b579a64e.tar.bz2
lint fix
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r--Objects/stringobject.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index 16884d3..ca7bac6 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -60,6 +60,13 @@ newstringobject(str)
return (object *) op;
}
+void
+stringdealloc(op)
+ object *op;
+{
+ DEL(op);
+}
+
unsigned int
getstringsize(op)
register object *op;
@@ -305,7 +312,7 @@ typeobject Stringtype = {
"string",
sizeof(stringobject),
sizeof(char),
- free, /*tp_dealloc*/
+ stringdealloc, /*tp_dealloc*/
stringprint, /*tp_print*/
0, /*tp_getattr*/
0, /*tp_setattr*/