free temp_line array

git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12450 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Marcus Meissner
2009-09-23 20:34:40 +00:00
parent 91df55e58b
commit a0f85aed8a

View File

@@ -145,7 +145,6 @@ int decode_panel (unsigned char *panel_out, unsigned char *panel,
unsigned char *temp_line;
temp_line = malloc(panelwidth);
if (!temp_line)
return -1;
@@ -182,6 +181,7 @@ int decode_panel (unsigned char *panel_out, unsigned char *panel,
temp_line[2*i+1] = panel_out[m*panelwidth + 2*i+1];
}
}
free (temp_line);
return 0;
} else { /* greens */
for (m=0; m < height/2; m++) {
@@ -247,6 +247,7 @@ int decode_panel (unsigned char *panel_out, unsigned char *panel,
temp_line[2*i+1] = tempval;
}
}
free (temp_line);
return GP_OK;
}
}