Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 182392
Collapse All | Expand All

(-)Packages/RNG/Src/RNGmodule.c (-4 / +4 lines)
Lines 79-85 Link Here
79
{
79
{
80
	distributionobject *self;
80
	distributionobject *self;
81
81
82
	self = PyObject_NEW(distributionobject, &distributiontype);
82
	self = PyObject_New(distributionobject, &distributiontype);
83
	if (self == NULL)
83
	if (self == NULL)
84
		return NULL;
84
		return NULL;
85
	self->density = NULL;
85
	self->density = NULL;
Lines 92-98 Link Here
92
dist_dealloc(distributionobject *self)
92
dist_dealloc(distributionobject *self)
93
{
93
{
94
	Py_XDECREF(self->parameters);
94
	Py_XDECREF(self->parameters);
95
	PyMem_DEL(self);
95
	PyObject_Del(self);
96
}
96
}
97
97
98
98
Lines 494-500 Link Here
494
{
494
{
495
	rngobject *self;
495
	rngobject *self;
496
496
497
	self = PyObject_NEW(rngobject, &rngtype);
497
	self = PyObject_New(rngobject, &rngtype);
498
	if (self == NULL)
498
	if (self == NULL)
499
		return NULL;
499
		return NULL;
500
	self->distribution = distribution;
500
	self->distribution = distribution;
Lines 522-528 Link Here
522
rng_dealloc(rngobject *self)
522
rng_dealloc(rngobject *self)
523
{
523
{
524
	Py_DECREF(self->distribution);
524
	Py_DECREF(self->distribution);
525
	PyMem_DEL(self);
525
	PyObject_Del(self);
526
}
526
}
527
527
528
528

Return to bug 182392