This should fix #1400. I added a delete after a chunk buffer is copied into a python string in the conversion function for VectorReadInfo
, analogous to what is done here for ChunkInfo
:
|
template<> struct PyDict<XrdCl::ChunkInfo> |
|
{ |
|
static PyObject* Convert( XrdCl::ChunkInfo *chunk ) |
|
{ |
|
PyObject *o = PyBytes_FromStringAndSize( (const char*)chunk->buffer, |
|
chunk->length ); |
|
delete[] (char*) chunk->buffer; |
|
return o; |
|
} |
|
}; |
You can view, comment on, or merge this pull request online at:
https://github.com/xrootd/xrootd/pull/1440
Commit Summary
- delete chunk buffer for VectorReadInfo after copying into python string
File Changes
Patch Links:
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/xrootd/xrootd/pull/1440",
"url": "https://github.com/xrootd/xrootd/pull/1440",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
Use REPLY-ALL to reply to list
To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1