This website works better with JavaScript.
Home
Help
Sign In
cacalabs
/
libcaca
mirror of
https://github.com/cacalabs/libcaca.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
7
Wiki
Activity
Browse Source
Don't leak fd when malloc fails (coverity)
tags/v0.99.beta19
Pascal Terjan
pterjan
11 years ago
parent
a836967426
commit
c80bd429bd
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
src/cacaserver.c
+ 3
- 0
src/cacaserver.c
View File
@@ -321,7 +321,10 @@ static void manage_connections(struct server *server)
{
server->clients = malloc(sizeof(struct client));
if(server->clients == NULL)
{
close(fd);
return;
}
}
else
{
Write
Preview
Loading…
Cancel
Save