Getting Segmentation fault. Please resolve it

Segmentation fault is coming in findAllString method

code link is not correct
this is not code of digital dictionary

check the link

Code link is correct

yeha code link is correct
may be it’s my mistake sorry

one thing you forgot is to add
for(int i=0;i<256;i++)freq[i]=NULL; this in construction

node(int d){
		data=d;
		end=false;
        for(int i=0;i<256;i++)freq[i]=NULL;
	}