added NULL-check to free_list of Aufgabe 4 in WS2012