summaryrefslogtreecommitdiffstats
path: root/Modules/grpmodule.c
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1997-01-09 22:22:05 (GMT)
committerBarry Warsaw <barry@python.org>1997-01-09 22:22:05 (GMT)
commit4bc9d3956059fd8ba6e41e8550336dc6de60bb02 (patch)
tree49357906a5f371ffd6b570dbcd64babf1a3ebe35 /Modules/grpmodule.c
parent4b76ba3280634886356782c0ecc66ac08895826a (diff)
downloadcpython-4bc9d3956059fd8ba6e41e8550336dc6de60bb02.zip
cpython-4bc9d3956059fd8ba6e41e8550336dc6de60bb02.tar.gz
cpython-4bc9d3956059fd8ba6e41e8550336dc6de60bb02.tar.bz2
Nailed a couple of memory leaks, caught by Purify.
Diffstat (limited to 'Modules/grpmodule.c')
-rw-r--r--Modules/grpmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/grpmodule.c b/Modules/grpmodule.c
index ccdba12..0199b6b 100644
--- a/Modules/grpmodule.c
+++ b/Modules/grpmodule.c
@@ -51,6 +51,7 @@ static PyObject *mkgrent(p)
Py_DECREF(w);
return NULL;
}
+ Py_DECREF(x);
}
v = Py_BuildValue("(sslO)",
p->gr_name,
@@ -112,6 +113,7 @@ static PyObject *grp_getgrall(self, args)
Py_DECREF(d);
return NULL;
}
+ Py_DECREF(v);
}
return d;
}