CloudPolis / webdav-client-cpp

:cloud: C++ WebDAV Client provides easy and convenient to work with WebDAV-servers.
http://cloudpolis.github.io/webdav-client-cpp/
Other
120 stars 52 forks source link

Memory Leaks for local Data variables #44

Closed horde3d closed 6 years ago

horde3d commented 6 years ago

Although I didn't run the code yet, it seems to me that the local variables that retrieve the response from Curl using the Append::buffer interface create a lot of memory leaks. While there is a call to new char[...] in the Append::buffer, nobody frees the data of the local Data struct.

e.g.: https://github.com/CloudPolis/webdav-client-cpp/blob/5a92c825e84ba0a3d1907b8cbdaeee7fa3079bb5/sources/client.cpp#L289

Did I miss something?