Clean up double free in some error paths that did trigger
an assertion in libprop.
This commit is contained in:
parent
506a6ab369
commit
70cf95aac9
|
@ -165,8 +165,6 @@ libdm_task_run(libdm_task_t libdm_task)
|
|||
|
||||
error = rump_sys_ioctl(libdm_control_fd, NETBSD_DM_IOCTL, &prefp);
|
||||
if (error < 0) {
|
||||
libdm_task_destroy(libdm_task);
|
||||
libdm_task = NULL;
|
||||
libdm_control_close(libdm_control_fd);
|
||||
|
||||
return error;
|
||||
|
@ -177,8 +175,6 @@ libdm_task_run(libdm_task_t libdm_task)
|
|||
error = prop_dictionary_sendrecv_ioctl(libdm_task->ldm_task,
|
||||
libdm_control_fd, NETBSD_DM_IOCTL, &dict);
|
||||
if ( error != 0) {
|
||||
libdm_task_destroy(libdm_task);
|
||||
libdm_task = NULL;
|
||||
libdm_control_close(libdm_control_fd);
|
||||
return error;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue