Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(b >= currentSizeS-1) { //realoc Array of words
- currentSizeS = currentSizeS*2; //line 70
- if(realloc(stringArr, currentSizeS*sizeof(char)) == NULL) printf("error\n");
- stringArr[b] = arr; //b is counter
- }
- ==2507== Invalid write of size 8
- ==2507== at 0x4009BE: main (main.c:72)
- ==2507== Address 0x543c088 is 72 bytes inside a block of size 80 free'd
- ==2507== at 0x4C28CCE: realloc (vg_replace_malloc.c:632)
- ==2507== by 0x400996: main (main.c:71)
Advertisement
Add Comment
Please, Sign In to add comment