Closed adamdougal closed 2 years ago
@nicolasff love this project, can you confirm or deny this issue. Thanks..
Hey @adamdougal, sorry I never got back to you on this, and thanks for the Valgrind trace. It was very detailed and pointed straight to the source of the leak, which was a redundant call to strdup
.
This memory leak was fixed in 66ef564b13bde66cba4d2e37b35ccba4099e4d91 on May 11, 2021, and has been part of Webdis since 0.1.16 (released on July 12, 2021). The commit details the reason for the memory leak, if you're interested. It happened only with requests that used a query string parameter to set the content-type, e.g. with ?type=text/css
.
/cc @sgoveia since you were following this issue.
Hey,
I'm currently running Webdis in a Docker container and deploying it into a Kubernetes cluster however I'm finding that Webdis's memory consumption is ever increasing. I've got no c experience but have run it with Valgrind and I think it's possibly indicating a memory leak: