B"H net_io.c: add missing else statement
This commit is contained in:
parent
eb41be3884
commit
04f4abda70
1 changed files with 1 additions and 0 deletions
1
net_io.c
1
net_io.c
|
@ -753,6 +753,7 @@ int handleHTTPRequest(struct client *c, char *p) {
|
|||
content = (char *) malloc(sbuf.st_size);
|
||||
if (read(fd, content, sbuf.st_size) != -1) {
|
||||
clen = sbuf.st_size;
|
||||
} else {
|
||||
free(content);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue