Getting rid of a nasty memory leak

adding a free();