I wanted to create a function that deletes from an array of segments the ones that are longer than a given number, by freeing the memory I don\'t need anymore. The problem i