Hi, I'm trying to create unbalanced binary tree but after I'm done using it I'm having some real problems deleting the char* that was allocated using strdup C function. I'm always getting some error
Invalid address specified to RtlValidateHeap( 00530000, 00551AF8 )
exercise_6_2.exe has triggered a breakpoint.
Hi, Tnx for reply. I was actually using my own version (exactly like the one in the link you gave me) of it after the original failed but it still gave me the same behavior.
Its interesting that this on the other hand is working
Ok so I found the error, 2 hours of my life is gone but its ok :D
line 15 root = (struct node*)malloc(sizeof(struct node*));
Allocated space only for node* not node itself :D Tnx for showing interesting in this thread :)