Prevent invalid free() if slave disappears

data should be initialized to NULL so that it is not freed at the end of
comm_recv if no data is read.