Use only a single read operation
Use only a single read operation

The profile and throw-away data can be read all at once. This avoids the
need for an extra memory allocation and fixes a memory leak.

henrik242/libdivecomputer,henrik242/libdivecomputer