Come dealloco un albero con 4 figli?

codice:
typedef struct qtnode {
int cx;
int cy;
int mol;
struct qtnode *nord;
struct qtnode *sud;
struct qtnode *ovest;
struct qtnode *est;
}qtnode;
typedef struct qtnode* tree;
Grazie