mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
use safewrite() and plug a leak
* src/cgroup.c: use safewrite() * src/qemu_driver.c: missing VIR_FREE pojnted out by Eduardo Habkost Daniel
This commit is contained in:
parent
3ca608b5d6
commit
6d670a1fc1
@ -1,3 +1,8 @@
|
||||
Wed Oct 8 15:42:44 CEST 2008 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* src/cgroup.c: use safewrite()
|
||||
* src/qemu_driver.c: missing VIR_FREE pojnted out by Eduardo Habkost
|
||||
|
||||
Tue Oct 7 23:08:51 CEST 2008 Jim Meyering <meyering@redhat.com>
|
||||
|
||||
avoid "make syntax-check" failure
|
||||
|
@ -649,7 +649,7 @@ int virCgroupAddTask(virCgroupPtr group, pid_t pid)
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (safe_write(fd, pidstr, strlen(pidstr)) <= 0) {
|
||||
if (safewrite(fd, pidstr, strlen(pidstr)) <= 0) {
|
||||
rc = -errno;
|
||||
goto done;
|
||||
}
|
||||
|
@ -2176,6 +2176,7 @@ static int qemudDomainShutdown(virDomainPtr dom) {
|
||||
"%s", _("shutdown operation failed"));
|
||||
return -1;
|
||||
}
|
||||
VIR_FREE(info);
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user