From a155418feacf627889503abbbc50b275d16eecf5 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Thu, 2 Dec 2021 16:02:06 -0800 Subject: [PATCH] Addressed PR comment. --- python/descriptor_pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/descriptor_pool.c b/python/descriptor_pool.c index 920074f9b8..b506b404a4 100644 --- a/python/descriptor_pool.c +++ b/python/descriptor_pool.c @@ -125,7 +125,7 @@ static PyObject* PyUpb_DescriptorPool_AddSerializedFile( PyExc_ValueError, "Cannot call Add on a DescriptorPool that uses a DescriptorDatabase. " "Add your file to the underlying database."); - return NULL; + goto done; } if (PyBytes_AsStringAndSize(serialized_pb, &buf, &size) < 0) {