Skip to content

Commit

Permalink
Merge pull request #34 from AlexanderKamensky/for_petr_2
Browse files Browse the repository at this point in the history
python: fix inconsistency in allocation/dellocation of blob and bmp o…
  • Loading branch information
ptesarik authored Dec 14, 2020
2 parents d456847 + 9500ebb commit 7ec08b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/kdumpfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -1726,7 +1726,7 @@ bmp_new(kdump_bmp_t *bmp)
{
bmp_object *self;

self = PyObject_GC_New(bmp_object, &bmp_object_type);
self = PyObject_New(bmp_object, &bmp_object_type);
if (!self)
return NULL;

Expand Down Expand Up @@ -1907,7 +1907,7 @@ blob_new(kdump_blob_t *blob)
{
blob_object *self;

self = PyObject_GC_New(blob_object, &blob_object_type);
self = PyObject_New(blob_object, &blob_object_type);
if (!self)
return NULL;

Expand Down

0 comments on commit 7ec08b9

Please sign in to comment.