Skip to content

Commit

Permalink
fix small memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Isenburg committed Aug 13, 2021
1 parent 45c0487 commit 9ecb4e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions LASzip/src/laszip_dll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
CHANGE HISTORY:
24 March 2021 -- fix small memory leak
15 October 2019 -- support reading from and writing to unicode file names under Windows
20 March 2019 -- check consistent legacy and extended classification in laszip_write_point()
7 November 2018 -- assure identical legacy and extended flags in laszip_write_point()
Expand Down Expand Up @@ -1204,10 +1205,10 @@ laszip_set_geokeys(
if (laszip_add_vlr(laszip_dll, "LASF_Projection", 34735, (laszip_U16)(8 + number*8), 0, (laszip_U8*)key_entries_plus_one))
{
sprintf(laszip_dll->error, "setting %u geodouble_params", number);
delete[] key_entries_plus_one;
delete [] key_entries_plus_one;
return 1;
}
delete[] key_entries_plus_one;
delete [] key_entries_plus_one;
}
catch (...)
{
Expand Down

0 comments on commit 9ecb4e6

Please sign in to comment.