Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sucessivas criações de árvore b a partir da ag causa segfault #4

Closed
simasgrilo opened this issue May 31, 2019 · 2 comments
Closed
Assignees

Comments

@simasgrilo
Copy link
Owner

parece ter a ver com o liberaAB não estar 100%. No mínimo, não são liberadas as estruturas internas ao vetor de chaves (a-> figs[i]).

@simasgrilo simasgrilo self-assigned this May 31, 2019
@simasgrilo
Copy link
Owner Author

se liberar cada a->figs[i], agora dá invalid pointer no free. Sem nada pros filhos, ele da sigsegv dentro do malloc na quarta ou quinta vez.

@Daniel-02
Copy link
Collaborator

Ajustei o free para percorrer so ate nchaves, e inicializei os ponterios de figs com NULL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants