Skip to content

Commit

Permalink
free_function to avoid memory leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
AbelPau committed Apr 4, 2024
1 parent 4e5541d commit 49623c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ogr/ogrsf_frmts/miramon/mm_gdal_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,10 @@ static char *MM_SetSubIndexFieldNam(const char *nom_camp,

_subindex = MM_GiveNewStringWithCharacterInFront(subindex, '_');
if (!_subindex)
{
free_function(NomCamp_SubIndex);
return nullptr;
}

sizet_subindex = strlen(_subindex);
sizet_nomcamp = strlen(NomCamp_SubIndex);
Expand Down

0 comments on commit 49623c0

Please sign in to comment.