chesterpolo / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

Memory leak (ssl_mutexes) #118

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In version 2.8 I got a memory leak reported by valgrind.

In set_ssl_option the line:

if ((ssl_mutexes = (pthread_mutex_t *) malloc(size)) == NULL) {

allocates memory which did not seem to be released anywhere.

Original issue reported on code.google.com by zitrax1...@gmail.com on 5 Feb 2010 at 6:03

GoogleCodeExporter commented 9 years ago
btw I just added a op_free(ssl_mutexes); in mg_stop() to get rid of it.

Original comment by zitrax1...@gmail.com on 8 Feb 2010 at 10:04

GoogleCodeExporter commented 9 years ago
Submitted 
http://code.google.com/p/mongoose/source/detail?r=43c65d9c8e72417f43d506cdd87b50
bbb361f43d, thank you.

Original comment by valenok on 12 Sep 2010 at 9:45