Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 273 Bytes

leakUnsafeArgAlloc.md

File metadata and controls

11 lines (6 loc) · 273 Bytes

Pattern: Unsafe argument allocation

Issue: -

Description

Unsafe allocation. If function throws, memory could be leaked. Use make_shared<int>() instead.

Further Reading