1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Fix passing wrong variables to nvlist_destroy() after r333446.

Reported by:	Alexander Fedorov (IT-Grad.ru)
MFC after:	5 days
This commit is contained in:
Alexander Motin 2018-12-21 17:22:15 +00:00
parent c2231fb0f8
commit 1f03d0bae1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=342349

View File

@ -667,7 +667,7 @@ cctl_port(int fd, int argc, char **argv, char *combinedopt)
}
bailout:
nvlist_destroy(req.args_nvl);
nvlist_destroy(option_list);
free(driver);
return (retval);
@ -2542,7 +2542,7 @@ cctl_create_lun(int fd, int argc, char **argv, char *combinedopt)
fprintf(stdout, "Device ID: %s\n", req.reqdata.create.device_id);
bailout:
nvlist_destroy(req.args_nvl);
nvlist_destroy(option_list);
return (retval);
}
@ -2644,7 +2644,7 @@ cctl_rm_lun(int fd, int argc, char **argv, char *combinedopt)
printf("LUN %d removed successfully\n", lun_id);
bailout:
nvlist_destroy(req.args_nvl);
nvlist_destroy(option_list);
return (retval);
}
@ -2764,7 +2764,7 @@ cctl_modify_lun(int fd, int argc, char **argv, char *combinedopt)
printf("LUN %d modified successfully\n", lun_id);
bailout:
nvlist_destroy(req.args_nvl);
nvlist_destroy(option_list);
return (retval);
}