polarsignals / frostdb

❄️ Coolest database around 🧊 Embeddable column database written in Go.
Apache License 2.0
1.27k stars 65 forks source link

fix panic on Release #899

Closed thorfour closed 1 month ago

thorfour commented 1 month ago

Previously if array.Concatenate returned an error not all columns in the cols slice would be populated and would cause the deferred function to panic on Release.

This fixes that potential panic by appending to the cols array such that only the allocated columns are released.