auth-cfg-wrapper: Fix memory leak with hash-and-URL certificates