Search found 1 match
- Tue Jul 25, 2017 7:58 pm
- Forum: LibHTTPD Support
- Topic: Memory leak
- Replies: 1
- Views: 25299
Memory leak
Hi, I found memory leak when use time out for httpdReadRequest: timeout.tv_sec = 0; timeout.tv_usec = 100000; request = httpdReadRequest(server, &timeout, &result); patch: api.c if (timeout != 0 && result == 0) { /* Timeout */ *status = 0; free(request); // <-- add free return(NULL); }