Skip to content

Commit 7ec08b9

Browse files
authored
Merge pull request #34 from AlexanderKamensky/for_petr_2
python: fix inconsistency in allocation/dellocation of blob and bmp o…
2 parents d456847 + 9500ebb commit 7ec08b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/kdumpfile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1726,7 +1726,7 @@ bmp_new(kdump_bmp_t *bmp)
17261726
{
17271727
bmp_object *self;
17281728

1729-
self = PyObject_GC_New(bmp_object, &bmp_object_type);
1729+
self = PyObject_New(bmp_object, &bmp_object_type);
17301730
if (!self)
17311731
return NULL;
17321732

@@ -1907,7 +1907,7 @@ blob_new(kdump_blob_t *blob)
19071907
{
19081908
blob_object *self;
19091909

1910-
self = PyObject_GC_New(blob_object, &blob_object_type);
1910+
self = PyObject_New(blob_object, &blob_object_type);
19111911
if (!self)
19121912
return NULL;
19131913

0 commit comments

Comments
 (0)