diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2020-09-01 19:45:16 +0200 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2020-09-01 19:45:16 +0200 |
commit | 00d9531bcfbf6d95fa6138965f424743c529ea5f (patch) | |
tree | 6c17fef95d45cd0e8383d540ae8af24170aeb5a5 | |
parent | d54ed53ecae23a206ff00dae57db54f935bb5741 (diff) | |
download | libgphoto2-00d9531bcfbf6d95fa6138965f424743c529ea5f.tar.gz |
added a missing free xdata (Coverity)
-rw-r--r-- | camlibs/ptp2/fujiptpip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camlibs/ptp2/fujiptpip.c b/camlibs/ptp2/fujiptpip.c index 6203dbaa9..72fe0932e 100644 --- a/camlibs/ptp2/fujiptpip.c +++ b/camlibs/ptp2/fujiptpip.c @@ -512,11 +512,11 @@ ptp_fujiptpip_getdata (PTPParams* params, PTPContainer* ptp, PTPDataHandler *han dtoh32(hdr.length)-fujiptpip_getdata_payload-4, xdata+fujiptpip_getdata_payload ); } + free (xdata); if (xret != PTP_RC_OK) { GP_LOG_E ("failed to putfunc of returned data"); return GP_ERROR; } - free (xdata); return PTP_RC_OK; } |