Emania

Untitled

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