Quantcast
Viewing all articles
Browse latest Browse all 4845

Commented Unassigned: Memory leak in fileio_win32.cpp _putn_fsb() [353]


fileio_win32.cpp 851

```
std::shared_ptr<uint8_t> buf(new uint8_t[msl::safeint3::SafeInt<size_t>(count*char_size)]);
```
shared_ptr will delete only first array element.

For fix check examples:
http://en.cppreference.com/w/cpp/memory/default_delete
Comments: Fixed in the development branch. Will be in release 2.6.0.

Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>