(ITS#5849) memory leak when using client certificates