MCPcopy Create free account
hub / github.com/libgit2/pygit2 / Signature_dealloc

Function Signature_dealloc

src/signature.c:81–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void
82Signature_dealloc(Signature *self)
83{
84 /* self->obj is the owner of the git_signature C structure, so we mustn't free it */
85 if (self->obj) {
86 Py_CLEAR(self->obj);
87 } else {
88 git_signature_free((git_signature *) self->signature);
89 }
90
91 /* we own self->encoding */
92 free(self->encoding);
93
94 PyObject_Del(self);
95}
96
97PyDoc_STRVAR(Signature__pointer__doc__, "Get the signature's pointer. For internal use only.");
98PyObject *

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…