[gcr] Fix memory leak in certificate chain building.
[gcr] Fix memory leak in certificate chain building.

Distrotech/gcr,Distrotech/gcr,stefwalter/gcr,Distrotech/gcr,stefwalter/gcr,stefwalter/gcr,stefwalter/gcr,Distrotech/gcr