Make new gcc -Wall happy

This commit is contained in:
Guido van Rossum 1998-04-10 22:16:39 +00:00
parent bb3649e2ba
commit 1109fbca76
4 changed files with 13 additions and 7 deletions

View file

@ -1016,14 +1016,16 @@ PyString_Format(format, args)
"not all arguments converted");
goto error;
}
if (args_owned)
if (args_owned) {
Py_DECREF(args);
}
_PyString_Resize(&result, reslen - rescnt);
return result;
error:
Py_DECREF(result);
if (args_owned)
if (args_owned) {
Py_DECREF(args);
}
return NULL;
}