B"H net_io.c: add missing else statement
This commit is contained in:
parent
eb41be3884
commit
04f4abda70
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);
|
content = (char *) malloc(sbuf.st_size);
|
||||||
if (read(fd, content, sbuf.st_size) != -1) {
|
if (read(fd, content, sbuf.st_size) != -1) {
|
||||||
clen = sbuf.st_size;
|
clen = sbuf.st_size;
|
||||||
|
} else {
|
||||||
free(content);
|
free(content);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue