Added free() method for both AppLinkPacket and AppVar classes