utils: use free instead of gfree