Correct GError* code to use the correct free function.