Revision 6e975aa4

View differences:

ml.c
662 662
			recvdatabuf[recv_id]->msgtype, &rParams);
663 663

  
664 664
		//clean up
665
		if (recvdatabuf[recv_id]->timeout_event) {
666
			event_del(recvdatabuf[recv_id]->timeout_event);
667
			event_free(recvdatabuf[recv_id]->timeout_event);
668
			recvdatabuf[recv_id]->timeout_event = NULL;
669
		}
665 670
		free(recvdatabuf[recv_id]->recvbuf);
666 671
		free(recvdatabuf[recv_id]);
667 672
		recvdatabuf[recv_id] = NULL;
......
788 793

  
789 794
			//clean up
790 795
			if (recvdatabuf[recv_id]->timeout_event) {
791
				int ret;
792 796
				debug("ML: freeing timeout for %d",recv_id);
793
				ret = event_del(recvdatabuf[recv_id]->timeout_event);
797
				event_del(recvdatabuf[recv_id]->timeout_event);
794 798
				event_free(recvdatabuf[recv_id]->timeout_event);
795 799
				recvdatabuf[recv_id]->timeout_event = NULL;
796
				debug(" ret: %d\n",ret);
797 800
			} else {
798 801
				debug("ML: received in 1 packet\n",recv_id);
799 802
			}

Also available in: Unified diff