Skip to content

Fix leaked dtlscertificate in dtlsagent

Juan Navarro requested to merge (removed):master into master

This leak was caused by two issues:

  1. dtlsdec creates a dtlscertificate object and passes it to the dtlsagent constructor, which takes a ref() itself, so I believe this caused the cert object to be left with two refs (possibly wrong? please review).

  2. dtlsagent never actually released the cert so this would never be disposed.

Merge request reports

Loading