| 103 | |
| 104 | |
| 105 | static wrapping_auxdata * |
| 106 | get_wrapping_auxdata(void) |
| 107 | { |
| 108 | wrapping_auxdata *res; |
| 109 | if (wrapping_auxdata_freenum > 0) { |
| 110 | wrapping_auxdata_freenum--; |
| 111 | res = wrapping_auxdata_freelist[wrapping_auxdata_freenum]; |
| 112 | } |
| 113 | else { |
| 114 | res = PyMem_Calloc(1, sizeof(wrapping_auxdata)); |
| 115 | if (res < 0) { |
| 116 | PyErr_NoMemory(); |
| 117 | return NULL; |
| 118 | } |
| 119 | res->base.free = (void *)wrapping_auxdata_free; |
| 120 | res->orig_context.descriptors = res->descriptors; |
| 121 | } |
| 122 | |
| 123 | return res; |
| 124 | } |
| 125 | |
| 126 | |
| 127 | static int |
no outgoing calls
no test coverage detected