Skip to content

Commit

Permalink
Avoid leaking memory, thx @stephan-hof :)
Browse files Browse the repository at this point in the history
  • Loading branch information
hannosch committed Jan 19, 2017
1 parent 4e94792 commit bd14125
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Persistence/_Persistence.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ P_getattr(cPersistentObject *self, PyObject *name)
else
v = Py_FindAttr((PyObject*)self, name);

Py_DECREF(as_bytes);

return v;
}

Expand Down

0 comments on commit bd14125

Please sign in to comment.