Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
caa63a38
Commit
caa63a38
authored
Jan 25, 2012
by
Mukund Sivaraman
Committed by
antirez
Jan 25, 2012
Browse files
If aeApiCreate() fails, there's probably not much one can do, but in the name of consistency...
parent
b362c111
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ae.c
View file @
caa63a38
...
...
@@ -74,6 +74,8 @@ aeEventLoop *aeCreateEventLoop(int setsize) {
eventLoop
->
maxfd
=
-
1
;
eventLoop
->
beforesleep
=
NULL
;
if
(
aeApiCreate
(
eventLoop
)
==
-
1
)
{
zfree
(
eventLoop
->
events
);
zfree
(
eventLoop
->
fired
);
zfree
(
eventLoop
);
return
NULL
;
}
...
...
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