Free resource correctly :-P