mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
camcontrol(8): Fix another trivial double-free
Reported by: Coverity CID: 1331222 Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
3aeebae9ca
commit
fdaa5d1c07
1 changed files with 3 additions and 1 deletions
|
|
@ -488,6 +488,7 @@ fw_validate_ibm(struct cam_device *dev, int retry_count, int timeout, int fd,
|
|||
CAM_EPF_ALL, stderr);
|
||||
|
||||
cam_freeccb(ccb);
|
||||
ccb = NULL;
|
||||
goto bailout;
|
||||
}
|
||||
|
||||
|
|
@ -549,7 +550,8 @@ fw_validate_ibm(struct cam_device *dev, int retry_count, int timeout, int fd,
|
|||
fprintf(stdout, "Firmware file is valid for this drive.\n");
|
||||
retval = 0;
|
||||
bailout:
|
||||
cam_freeccb(ccb);
|
||||
if (ccb != NULL)
|
||||
cam_freeccb(ccb);
|
||||
|
||||
return (retval);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue