Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
laz-perf: fix harmless unique_ptr wrong typing (makes Valgrind happier)
(upstream laz-perf has changed much from our copy and doesn't seem to
have that flow)
  • Loading branch information
rouault authored and nyalldawson committed Sep 24, 2021
1 parent 9b20b0b commit 4859506
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions external/laz-perf/io.hpp
Expand Up @@ -599,7 +599,7 @@ namespace laszip {
//
laszipFound = true;

std::unique_ptr<char> buffer(
std::unique_ptr<char[]> buffer(
new char[vlr_header.record_length]);

f_.read(buffer.get(), vlr_header.record_length);
Expand Down Expand Up @@ -977,7 +977,7 @@ namespace laszip {
//
laz_vlr vlr = laz_vlr::from_schema(schema_, chunk_size_);

std::unique_ptr<char> vlrbuf(new char[vlr.size()]);
std::unique_ptr<char[]> vlrbuf(new char[vlr.size()]);
vlr.extract(vlrbuf.get());
f_.write(vlrbuf.get(), vlr.size());

Expand Down

0 comments on commit 4859506

Please sign in to comment.