[fix] io layer memory management

Conflicts:
	src/libxively/xively.c