Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Memory leak because of using openssl encryption #323
I experienced two memory leaks when I am using the rabbitmq-c with encrypted connection. I am using libssl. I was able to fix the leaks that occured in hostname_matches_subject_alt_name and amqp_ssl_socket_verify_hostname in amqp_openssl.c.
I changed the methods to look like follows:
After I recompiled librabbitmq-c and rerun the application using valgrind the memory leaks were gone.
AMAN Media GmbH