commit | 1b0bcbcf62884959fa7214eb16c44cff445691c6 | [log] [tgz] |
---|---|---|
author | Pedro Scarapicchia Junior <pedrinho.rep51@gmail.com> | Mon May 09 14:10:49 2011 +0000 |
committer | Eric Van Hensbergen <ericvh@gmail.com> | Thu May 12 17:05:37 2011 -0500 |
tree | 08d74d89ce863caec1536c3830168ed7a2d42817 | |
parent | ca1376d10810bc2c20c8d0821a9ee04ca2507c01 [diff] |
net/9p/protocol.c: Fix a memory leak When p9pdu_readf() is called with "s" attribute, it allocates a pointer that will store a string. In p9dirent_read(), this pointer is not being released, leading to out of memory errors. This patch releases this pointer after string is copyed to dirent->d_name. Signed-off-by: Pedro Scarapicchia Junior <pedro.scarapiccha@br.flextronics.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>