Skip to content

Commit 69653b1

Browse files
committed
Fix: Free gmt_arr mem on PyDict_New fail
1 parent 36cd499 commit 69653b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commit.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Commit_message_trailers__get__(Commit *self)
118118

119119
dict = PyDict_New();
120120
if (dict == NULL)
121-
return NULL;
121+
goto error;
122122

123123
trailer_count = gmt_arr.count;
124124
for (i=0; i < trailer_count; i++) {

0 commit comments

Comments
 (0)