Skip to content

Instantly share code, notes, and snippets.

@elliotchance
Created January 30, 2013 10:15
Show Gist options
  • Save elliotchance/4672194 to your computer and use it in GitHub Desktop.
Save elliotchance/4672194 to your computer and use it in GitHub Desktop.
void A()
{
B();
C();
}
void B()
{
int *v = malloc(sizeof(int));
if(NULL == v) {
return NULL;
}
int *v2 = malloc(sizeof(int));
if(NULL == v2) {
return NULL;
}
*v = *v2 = 456;
}
void C()
{
int *v = malloc(sizeof(int));
if(NULL == v) {
return NULL;
}
int *v2 = malloc(sizeof(int));
if(NULL == v2) {
return NULL;
}
*v = *v2 = 456;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment