robur-coop / albatross

Albatross: orchestrate and manage MirageOS unikernels with Solo5
ISC License
142 stars 17 forks source link

fix fd, mem leak in vmm_stats_stubs.c #10

Closed sg2342 closed 6 years ago

sg2342 commented 6 years ago

https://github.com/hannesm/albatross/blob/e48d3b345701bfddc6674b3f6fd418f05400fbc7/stats/vmm_stats_stubs.c#L100

you should

close(vm_get_device_fd(ctx));free(ctx);

here