Skip to content

Commit

Permalink
Python bindings: fix memleak with MultipartUploadStart() and Multipar…
Browse files Browse the repository at this point in the history
…tUploadAddPart() (master only)
  • Loading branch information
rouault committed Oct 27, 2024
1 parent 86037df commit 2532947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swig/include/cpl.i
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ void MultipartUploadGetCapabilities(
}

%inline {
char* MultipartUploadStart(const char *pszFilename, char** options = NULL)
retStringAndCPLFree* MultipartUploadStart(const char *pszFilename, char** options = NULL)
{
return VSIMultipartUploadStart(pszFilename, options);
}
Expand All @@ -1005,7 +1005,7 @@ char* MultipartUploadStart(const char *pszFilename, char** options = NULL)
%apply (size_t nLen, char *pBuf ) { (size_t nDataLength, const char *pData)};

%inline {
char* MultipartUploadAddPart(const char *pszFilename,
retStringAndCPLFree* MultipartUploadAddPart(const char *pszFilename,
const char *pszUploadId,
int nPartNumber,
GUIntBig nFileOffset,
Expand Down

0 comments on commit 2532947

Please sign in to comment.