konteck / wpp

Single file embedded C++ web server
http://konteck.github.com/wpp
94 stars 47 forks source link

memory leak (realpath) #6

Closed alexk7 closed 10 years ago

alexk7 commented 10 years ago

The code use a glibc extension of the realpath function by passing NULL as the second argument. In this case, the function allocate a new buffer with malloc and it should be freed with free.

detro commented 10 years ago

Hi @alexk7,

link to the code you refer?

alexk7 commented 10 years ago

https://github.com/konteck/wpp/blob/master/web%2B%2B.hpp#L190