Fix some memory leaks in the TParse code. Patch by Erik Huelsmann

<e.huelsmann@gmx.net>.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@817 8cb11bc2-c004-0410-86c3-e597b4017df7
remotes/tags/1.0.0-rc1
cmpilato 2004-03-29 15:59:17 +00:00
parent a5cf1fe9c9
commit e2e32dcc0d
2 changed files with 1 additions and 5 deletions

View File

@ -145,6 +145,7 @@ class TokenParser {
~TokenParser() {
if (input!=NULL) { delete input;input=NULL; };
if (backget!=NULL) { delstr(backget); backget=NULL; };
};
};

View File

@ -146,7 +146,6 @@ class PythonSink : public Sink {
int define_revision(char *revision, long timestamp, char *author, char *state, Branche *branches, char *next)
{
PyObject *pbranchs=PyList_New(0);
Py_INCREF(pbranchs);
Branche *move=branches;
while (move!=NULL) {
PyList_Append(pbranchs, PyString_FromString(move->name) );
@ -277,7 +276,3 @@ static PyObject * tparse( PyObject *self, PyObject *args)
Py_INCREF(Py_None);
return Py_None;
};