yocontra / node-gdal-next

Node.js bindings for GDAL (Geospatial Data Abstraction Library) [Fork]
https://contra.io/node-gdal-next/
Apache License 2.0
75 stars 36 forks source link

fix double free on blob buffer creation (issue #15) #33

Closed mmomtchev closed 3 years ago

mmomtchev commented 3 years ago

GDAL Feature->GetFieldAsBinary returns a pointer to an internal buffer that should not be freed Nan::NewBuffer expects to receive ownership of the buffer => So no other solution than copy :-(