changed malloc and free to memb fcts

Conflicts:
	frame_buffer.h