
17 Jun
2014
17 Jun
'14
4:35 p.m.
On 06/17/14 16:33, Pavel Hrdina wrote:
On 17.6.2014 13:32, Peter Krempa wrote:
In virVBoxSnapshotConfRemoveFakeDisks and virVBoxSnapshotConfDiskIsInMediaRegistry the disk array constructed from all the disks would be leaked at the end of the function and on allocation errors. Also the temporary disk list would be leaked.
Add a cleanup section and free the memory properly.
Found by coverity. --- src/vbox/vbox_snapshot_conf.c | 40 ++++++++++++++++++++++++++++++---------- 1 file changed, 30 insertions(+), 10 deletions(-)
ACK
Pushed; Thanks. Peter