added missing free(data) (CID 58)
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10160 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
@@ -165,8 +165,10 @@ int stv0674_get_image(GPPort *port, int image_no, CameraFile *file)
|
||||
0,
|
||||
imagno,
|
||||
8);
|
||||
if (ret < GP_OK)
|
||||
if (ret < GP_OK) {
|
||||
free (data);
|
||||
return ret;
|
||||
}
|
||||
|
||||
gp_port_read(port, &data[current*0x1000], 0x1000);
|
||||
}
|
||||
@@ -180,8 +182,10 @@ int stv0674_get_image(GPPort *port, int image_no, CameraFile *file)
|
||||
0,
|
||||
imagno,
|
||||
8);
|
||||
if (ret < GP_OK)
|
||||
if (ret < GP_OK) {
|
||||
free (data);
|
||||
return ret;
|
||||
}
|
||||
|
||||
gp_port_read(port, &data[current*0x1000], remain);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user