Skip to content

Commit

Permalink
Fix memory leak in low-level module.
Browse files Browse the repository at this point in the history
The census-event string was not decrefed and we therefore leaked memory.
  • Loading branch information
jeromekelleher committed Dec 5, 2019
1 parent 48b8da2 commit 22cc6c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions _msprimemodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -2861,6 +2861,7 @@ Simulator_parse_demographic_events(Simulator *self, PyObject *py_events)
Py_XDECREF(instantaneous_bottleneck_s);
Py_XDECREF(initial_size_s);
Py_XDECREF(growth_rate_s);
Py_XDECREF(census_event_s);
return ret;
}

Expand Down

0 comments on commit 22cc6c5

Please sign in to comment.