Skip to content

Instantly share code, notes, and snippets.

@vanhoefm
Last active December 11, 2015 08:58
Show Gist options
  • Save vanhoefm/4576191 to your computer and use it in GitHub Desktop.
Save vanhoefm/4576191 to your computer and use it in GitHub Desktop.
/* Take a chunk off a bin list */
void unlink(malloc_chunk *P, malloc_chunk *BK, malloc_chunk *FD)
{
FD = P->fd;
BK = P->bk;
FD->bk = BK;
BK->fd = FD;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment