0

I am new to Xcode Instruments. How can I see a simple memory leak difference in the following 2 programs by using the Leak template :

int main()
{
    int* pp =  new int[50000000];
    for(int i =0;i<50000000;i++){
        pp[i] = i;
    }
}
int main()
{
    int* pp = new int[1];
    pp[0] = 10;
}
Pokechu22
  • 4,984
  • 9
  • 37
  • 62
voltaa7
  • 203
  • 1
  • 8
  • https://developer.apple.com/library/mac/documentation/developertools/conceptual/instrumentsuserguide/InstrumentsQuickStart/InstrumentsQuickStart.html – Almo Sep 11 '14 at 19:21
  • in each of the above cases i get only 1.5kB of leak ,which is same for the following code too:`int main(){ //blank}` , there must be a difference ? – voltaa7 Sep 11 '14 at 20:30

0 Answers0