mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Adopting fixes from PR 1411
This commit is contained in:
parent
959b556aac
commit
fc27313b75
|
@ -15341,7 +15341,7 @@ RAII ("Resource Acquisition Is Initialization") is the simplest, most systematic
|
||||||
|
|
||||||
##### Example
|
##### Example
|
||||||
|
|
||||||
void f1(int i) // Bad: possibly leak
|
void f1(int i) // Bad: possible leak
|
||||||
{
|
{
|
||||||
int* p = new int[12];
|
int* p = new int[12];
|
||||||
// ...
|
// ...
|
||||||
|
|
Loading…
Reference in New Issue
Block a user