Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8ac83f31
Commit
8ac83f31
authored
Jan 23, 2006
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
This should fix a mem leak on the Mac. Brett tested it.
parent
ffa6f3d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
Mac/Modules/file/_Filemodule.c
Mac/Modules/file/_Filemodule.c
+3
-4
No files found.
Mac/Modules/file/_Filemodule.c
View file @
8ac83f31
...
...
@@ -3204,11 +3204,10 @@ PyMac_GetFSRef(PyObject *v, FSRef *fsr)
char
*
path
=
NULL
;
if
(
!
PyArg_Parse
(
v
,
"et"
,
Py_FileSystemDefaultEncoding
,
&
path
))
return
0
;
if
(
(
err
=
FSPathMakeRef
(
path
,
fsr
,
NULL
))
)
{
if
(
(
err
=
FSPathMakeRef
(
path
,
fsr
,
NULL
))
)
PyMac_Error
(
err
);
return
0
;
}
return
1
;
PyMem_Free
(
path
);
return
!
err
;
}
/* XXXX Should try unicode here too */
/* Otherwise we try to go via an FSSpec */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment