[gck] Fix double free with copied attributes.
[gck] Fix double free with copied attributes.

Copied attributes would result in a double free if length was zero.

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