Commit 26531941 authored by Dominik Widhalm's avatar Dominik Widhalm
Browse files

Added missing free() to task 6.12

parent d27ecb32
......@@ -454,8 +454,14 @@ int main (int argc, char *argv[]) {
similarity = 100-(unsigned int)(((double)image_get_similarity(similar)) / 255.0 * 100.0);
/* Output the result */
printf("\nThe images have a similarity of %d%%!\n",similarity);
/* Free the memory of similar */
free(similar);
}
/* Free the memory of image2 */
free(image2);
}
/* Free the memory of image1 */
free(image1);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment