mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
hw/9pfs: Fix memleaks in some 9p operation
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
This commit is contained in:
parent
25427ec143
commit
10e72295bd
1 changed files with 2 additions and 0 deletions
|
@ -2696,6 +2696,7 @@ out_nofid:
|
||||||
err = offset;
|
err = offset;
|
||||||
err += pdu_marshal(pdu, offset, "b", status);
|
err += pdu_marshal(pdu, offset, "b", status);
|
||||||
complete_pdu(s, pdu, err);
|
complete_pdu(s, pdu, err);
|
||||||
|
v9fs_string_free(&flock->client_id);
|
||||||
g_free(flock);
|
g_free(flock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2736,6 +2737,7 @@ out:
|
||||||
put_fid(s, fidp);
|
put_fid(s, fidp);
|
||||||
out_nofid:
|
out_nofid:
|
||||||
complete_pdu(s, pdu, err);
|
complete_pdu(s, pdu, err);
|
||||||
|
v9fs_string_free(&glock->client_id);
|
||||||
g_free(glock);
|
g_free(glock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue