Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 1 addition & 15 deletions pandas/_libs/src/ujson/python/objToJSON.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ typedef struct __PyObjectEncoder {
// pass-through to encode numpy data directly
int npyType;
void *npyValue;
TypeContext basicTypeContext;

int datetimeIso;
NPY_DATETIMEUNIT datetimeUnit;
Expand Down Expand Up @@ -2115,10 +2114,7 @@ void Object_endTypeContext(JSOBJ Py_UNUSED(obj), JSONTypeContext *tc) {

PyObject_Free(GET_TC(tc)->cStr);
GET_TC(tc)->cStr = NULL;
if (tc->prv !=
&(((PyObjectEncoder *)tc->encoder)->basicTypeContext)) { // NOLINT
PyObject_Free(tc->prv);
}
PyObject_Free(tc->prv);
tc->prv = NULL;
}
}
Expand Down Expand Up @@ -2216,16 +2212,6 @@ PyObject *objToJSON(PyObject *Py_UNUSED(self), PyObject *args,
pyEncoder.datetimeUnit = NPY_FR_ms;
pyEncoder.outputFormat = COLUMNS;
pyEncoder.defaultHandler = 0;
pyEncoder.basicTypeContext.newObj = NULL;
pyEncoder.basicTypeContext.dictObj = NULL;
pyEncoder.basicTypeContext.itemValue = NULL;
pyEncoder.basicTypeContext.itemName = NULL;
pyEncoder.basicTypeContext.attrList = NULL;
pyEncoder.basicTypeContext.iterator = NULL;
pyEncoder.basicTypeContext.cStr = NULL;
pyEncoder.basicTypeContext.npyarr = NULL;
pyEncoder.basicTypeContext.rowLabels = NULL;
pyEncoder.basicTypeContext.columnLabels = NULL;

PRINTMARK();

Expand Down