summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2016-01-10 12:26:58 +0100
committerMarcus Meissner <marcus@jet.franken.de>2016-01-10 12:26:58 +0100
commit05afc5175d52c98d7645685c07024de7428eba59 (patch)
tree381fda5adefd4d25146a2d64c18e3aad41f2e930
parent64b2c261a6fa69c6f9077a237e705e52039d9118 (diff)
downloadlibgphoto2-05afc5175d52c98d7645685c07024de7428eba59.tar.gz
free opcodes and devprops (Coverity)
-rw-r--r--libgphoto2_port/vusb/vcamera.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgphoto2_port/vusb/vcamera.c b/libgphoto2_port/vusb/vcamera.c
index 77ff204e9..7944ae04d 100644
--- a/libgphoto2_port/vusb/vcamera.c
+++ b/libgphoto2_port/vusb/vcamera.c
@@ -501,6 +501,7 @@ ptp_deviceinfo_write(vcamera *cam, ptpcontainer *ptp) {
for (i=0;i<sizeof(ptp_functions)/sizeof(ptp_functions[0]);i++)
opcodes[i] = ptp_functions[i].code;
x += put_16bit_le_array(data+x,opcodes,sizeof(ptp_functions)/sizeof(ptp_functions[0])); /* OperationsSupported */
+ free (opcodes);
events[0] = 0x4002;
events[1] = 0x4003;
@@ -513,6 +514,7 @@ ptp_deviceinfo_write(vcamera *cam, ptpcontainer *ptp) {
for (i=0;i<sizeof(ptp_properties)/sizeof(ptp_properties[0]);i++)
devprops[i] = ptp_properties[i].code;
x += put_16bit_le_array(data+x,devprops,sizeof(ptp_properties)/sizeof(ptp_properties[0]));/* DevicePropertiesSupported */
+ free (devprops);
imageformats[0] = 0x3801;
x += put_16bit_le_array(data+x,imageformats,1); /* CaptureFormats */