From 19d7954f3beea3ef8876ddb08a07a3830e446e0a Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 27 Nov 2011 23:44:41 +0100 Subject: Partially revert fa5e833a libpipe/pipe.c (pipe_recv): Even if `source' is NULL and packet source exists, do not dereference it, as pq_dequeue already does it. --- libpipe/pipe.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'libpipe') diff --git a/libpipe/pipe.c b/libpipe/pipe.c index 4580b3ab..914816bc 100644 --- a/libpipe/pipe.c +++ b/libpipe/pipe.c @@ -383,8 +383,6 @@ pipe_recv (struct pipe *pipe, int noblock, unsigned *flags, void **source, if (source) packet_read_source (packet, source); - else if (packet->source) - pipe_dealloc_addr(packet->source); err = (*pipe->class->read)(packet, &dq, flags, data, data_len, amount); -- cgit v1.2.3