probleme free heap block lors d'un malloc
Je compile un programme sans probleme, je l'execute sans probleme mais des que je suis en mode debug, j'obtiens:
ce msg qui apparait lors d'un malloc:
Code:
HEAP[Galois7.exe]: HEAP: Free Heap block 8d8fa8 modified at 8d8fd0 after it was freed
Voici le malloc:
Code:
1 2 3 4 5 6
| image_finaleF = (unsigned char *) malloc (sizeof(unsigned char) * 3 * Size_[4]*2 * Size_[4]*2);
if (image_finaleF == NULL)
{
fprintf(stderr,"Allocation image_finaleF impossible \n");
exit(EXIT_FAILURE);
} |
et pourtant je ne fait aucun free avant, je ne comprend plus grand chose
:roll: :roll: