[sr-dev] git:3.1: core: helper function to free parsed header struct with inner free function