Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 1b0bcbcf authored by Pedro Scarapicchia Junior's avatar Pedro Scarapicchia Junior Committed by Eric Van Hensbergen
Browse files

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: default avatarPedro Scarapicchia Junior <pedro.scarapiccha@br.flextronics.com>
Signed-off-by: default avatarEric Van Hensbergen <ericvh@gmail.com>
parent ca1376d1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment