Виділити/звільнити пам'ять

#include <stdlib.h>

node **ptr;

*ptr = (node*)malloc(sizeof(node));

node *ptr;

free(ptr);