ogrlineref: fix double-free on 'ogrlineref --version'

This commit is contained in:
Even Rouault 2024-12-23 02:52:28 +01:00
parent 6a3c3148c5
commit f314d4b6bc
No known key found for this signature in database
GPG Key ID: 33EBBFC47B3DD87D
1 changed files with 1 additions and 2 deletions

View File

@ -1393,7 +1393,7 @@ MAIN_START(argc, argv)
argc = GDALGeneralCmdLineProcessor(argc, &argv, 0);
if (argc < 2)
if (argc < 1)
{
try
{
@ -1406,7 +1406,6 @@ MAIN_START(argc, argv)
CPLError(CE_Failure, CPLE_AppDefined, "Unexpected exception: %s",
err.what());
}
CSLDestroy(argv);
exit(1);
}