Removing duplicating free defintion on Linux