summaryrefslogtreecommitdiff
path: root/libpipe
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2011-11-27 23:44:41 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-11-27 23:45:30 +0100
commit19d7954f3beea3ef8876ddb08a07a3830e446e0a (patch)
tree8a95225885cd6941f72f0953b6662cb9e288392d /libpipe
parent5fcb478d007d14227e31bbdd74d9c0b4f54908af (diff)
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.
Diffstat (limited to 'libpipe')
-rw-r--r--libpipe/pipe.c2
1 files changed, 0 insertions, 2 deletions
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);