Back to index

lightning-sunbird  0.9+nobinonly
Functions
TestLeaky.cpp File Reference
#include <stdio.h>
#include <malloc.h>

Go to the source code of this file.

Functions

void s1 (int, int)
void s2 ()
void s3 ()
void s4 ()
void s6 (int recurse)
void s5 (int recurse)
void C ()
void D ()
void B (int way)
void A ()
void X ()
int main ()
 main()

Function Documentation

void A ( )

Definition at line 110 of file TestLeaky.cpp.

{
  malloc(10);
  B(1);
}

Here is the call graph for this function:

void B ( int  way)

Definition at line 98 of file TestLeaky.cpp.

{
  malloc(10);
  if (way) {
    C();
    C();
    C();
  } else {
    D();
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void C ( )

Definition at line 88 of file TestLeaky.cpp.

{
  malloc(10);
}

Here is the caller graph for this function:

void D ( )

Definition at line 93 of file TestLeaky.cpp.

{
  malloc(10);
}

Here is the caller graph for this function:

int main ( void  )

main()

Definition at line 122 of file TestLeaky.cpp.

{
  s1(1, 2);
  s2();
  s3();
  s4();
  s5(10);
  A();
  X();
}

Here is the call graph for this function:

void s1 ( int  ,
int   
)

Definition at line 40 of file TestLeaky.cpp.

{
    malloc(100);
}
void s2 ( )

Definition at line 45 of file TestLeaky.cpp.

{
    s1(1, 2);
    malloc(100);
}
void s3 ( )

Definition at line 51 of file TestLeaky.cpp.

{
    s2();
    malloc(100);
    malloc(200);
}

Here is the caller graph for this function:

void s4 ( )

Definition at line 58 of file TestLeaky.cpp.

{
    s3();
    char* cp = new char[300];
    cp = cp;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void s5 ( int  recurse)

Definition at line 68 of file TestLeaky.cpp.

{
    malloc(100);
    if (recurse > 0) {
      s6(recurse - 1);
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void s6 ( int  recurse)

Definition at line 76 of file TestLeaky.cpp.

{
    malloc(100);
    if (recurse > 0) {
      s5(recurse - 1);
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void X ( )

Definition at line 116 of file TestLeaky.cpp.

{
  malloc(10);
  B(0);
}

Here is the call graph for this function:

Here is the caller graph for this function: