Comment 7 for bug 460085

Revision history for this message
Thierry Carrez (ttx) wrote : Re: memory leak; rampart_context not freed (memory leaked per connection)

Comments on the patch from Rampart upstream (shankar):

The patch is having several problems. First of all, if the
rampart_context is freed in in_handler, server side functionalities
will be broken. rampart_context is actually freed when msg_ctx is
freed. So no need to free it.

Uncommenting the lines to free receiver_cert is fine, but it causes
crash in some scenarios due to a bug. I fixed it in trunk. If you are
working on 1.3.0 release, I have attached a patch. You have to apply
it as well to fix the crash.