Fix coverity found memleaks in flirt.c. Remove confusing defines