Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
3fdf12ca
Commit
3fdf12ca
authored
Jan 20, 2006
by
Eli Zaretskii
Browse files
(Fload): Don't leak the file descriptor returned by openp if we are going
to signal an error.
parent
7559f399
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
src/ChangeLog
src/ChangeLog
+3
-0
src/lread.c
src/lread.c
+6
-2
No files found.
src/ChangeLog
View file @
3fdf12ca
2006-01-20 Eli Zaretskii <eliz@gnu.org>
* lread.c (Fload): Don't leak the file descriptor returned by
openp if we are going to signal an error.
* w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
directly to _close.
(sys_dup): Protect against new_fd larger than fd_info[] can handle.
...
...
src/lread.c
View file @
3fdf12ca
...
...
@@ -801,8 +801,12 @@ Return t if file exists. */)
if
(
!
NILP
(
Fequal
(
found
,
XCAR
(
tem
))))
count
++
;
if
(
count
>
3
)
Fsignal
(
Qerror
,
Fcons
(
build_string
(
"Recursive load"
),
Fcons
(
found
,
Vloads_in_progress
)));
{
if
(
fd
>=
0
)
emacs_close
(
fd
);
Fsignal
(
Qerror
,
Fcons
(
build_string
(
"Recursive load"
),
Fcons
(
found
,
Vloads_in_progress
)));
}
record_unwind_protect
(
record_load_unwind
,
Vloads_in_progress
);
Vloads_in_progress
=
Fcons
(
found
,
Vloads_in_progress
);
}
...
...
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