Closed QuLogic closed 9 months ago
The CSLAddString function takes a char *, not a const char *, which may turn into an error on new GCC. It also allocates a new array when given NULL, which is copied by OSRSetPROJSearchPaths, so it is leaked.
CSLAddString
char *
const char *
NULL
OSRSetPROJSearchPaths
@sgillies Note to self to backport this.
The
CSLAddString
function takes achar *
, not aconst char *
, which may turn into an error on new GCC. It also allocates a new array when givenNULL
, which is copied byOSRSetPROJSearchPaths
, so it is leaked.