Add forgotten packet free in error path. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- fs/nfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/nfs.c b/fs/nfs.c index 0d098f2a66..eb316fe295 100644 --- a/fs/nfs.c +++ b/fs/nfs.c @@ -773,6 +773,7 @@ static int nfs_lookup_req(struct nfs_priv *npriv, struct nfs_fh *fh, ninode->fh.size = ntoh32(net_read_uint32(p++)); if (ninode->fh.size > NFS3_FHSIZE) { + nfs_free_packet(nfs_packet); debug("%s: file handle too big: %u\n", __func__, ninode->fh.size); return -EIO; -- 2.26.0.rc2 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox