Skip to content

Instantly share code, notes, and snippets.

@saolsen
Created January 20, 2015 19:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saolsen/5f8eb258f99c18ffa945 to your computer and use it in GitHub Desktop.
Save saolsen/5f8eb258f99c18ffa945 to your computer and use it in GitHub Desktop.
#include <stdlib.h>
int main(int nargs, char * args[])
{
void* vp = malloc(sizeof(char) * 5);
const char* ip = (char*)(vp);
free(ip);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment