# HG changeset patch
# User Volker Braun <vbraun@stp.dias.ie>
# Date 1317913007 -7200
# Node ID c94e40df1f2dde50663a5fc91ca52c7dd73ff013
# Parent 479e15336613d21d9fa8d9c3374a55ac8de458f4
Trac #10903: Fix memory leak.
diff --git a/sage/rings/polynomial/multi_polynomial_libsingular.pyx b/sage/rings/polynomial/multi_polynomial_libsingular.pyx
|
a
|
b
|
|
| 1870 | 1870 | singular_ring_delete(self._parent_ring) |
| 1871 | 1871 | return |
| 1872 | 1872 | assert self._parent_ring != NULL # the constructor has no way to raise an exception |
| | 1873 | p_Delete(&self._poly, self._parent_ring) |
| 1873 | 1874 | singular_ring_delete(self._parent_ring) |
| 1874 | 1875 | |
| 1875 | 1876 | def __copy__(self): |