Skip to content

Commit

Permalink
memory leak fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlouden committed Aug 21, 2016
1 parent ee7af5a commit d10a714
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions c_src/_web.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,6 @@ static PyObject *web_calc_substellar(PyObject *self, PyObject *args)
PyObject *ret = Py_BuildValue("[d,d]",output[0],output[1]);

Py_DECREF(c_array);
free(c);
free(output);

return ret;
}
Expand Down Expand Up @@ -460,7 +458,6 @@ static PyObject *web_lightcurve(PyObject *self, PyObject *args)

/* Clean up. */
Py_DECREF(t_array);
free(output);

return pylist;
}

0 comments on commit d10a714

Please sign in to comment.