gcr: Follow up to memory leak patches

One of them accidentally caused a double free.