mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +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>
|
Tue Oct 7 23:08:51 CEST 2008 Jim Meyering <meyering@redhat.com>
|
||||||
|
|
||||||
avoid "make syntax-check" failure
|
avoid "make syntax-check" failure
|
||||||
|
@ -649,7 +649,7 @@ int virCgroupAddTask(virCgroupPtr group, pid_t pid)
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (safe_write(fd, pidstr, strlen(pidstr)) <= 0) {
|
if (safewrite(fd, pidstr, strlen(pidstr)) <= 0) {
|
||||||
rc = -errno;
|
rc = -errno;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
@ -2176,6 +2176,7 @@ static int qemudDomainShutdown(virDomainPtr dom) {
|
|||||||
"%s", _("shutdown operation failed"));
|
"%s", _("shutdown operation failed"));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
VIR_FREE(info);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user