mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Coverity found refleak: need to free 'v' after calling Tkinter_Error().
Will backport to release24.
This commit is contained in:
parent
58780d2642
commit
a74a84d4cb
1 changed files with 5 additions and 2 deletions
|
@ -686,8 +686,11 @@ Tkapp_New(char *screenName, char *baseName, char *className,
|
|||
ckfree(args);
|
||||
}
|
||||
|
||||
if (Tcl_AppInit(v->interp) != TCL_OK)
|
||||
return (TkappObject *)Tkinter_Error((PyObject *)v);
|
||||
if (Tcl_AppInit(v->interp) != TCL_OK) {
|
||||
PyObject *result = Tkinter_Error((PyObject *)v);
|
||||
Py_DECREF((PyObject *)v);
|
||||
return (TkappObject *)result;
|
||||
}
|
||||
|
||||
EnableEventHook();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue