Skip to content

Commit 72c88bd

Browse files
committed
SWIG bindings: fix memleak in gdal.GetConfigOptions()
1 parent 2532947 commit 72c88bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swig/include/cpl.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ char** wrapper_GetConfigOptions() {
503503

504504
papszOpts = CSLMerge(papszOpts, papszTLOpts);
505505

506-
CPLFree(papszTLOpts);
506+
CSLDestroy(papszTLOpts);
507507

508508
return papszOpts;
509509
};

0 commit comments

Comments
 (0)