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

LLVM scan-build warnings #3

Open
jkvis opened this issue Oct 22, 2020 · 0 comments
Open

LLVM scan-build warnings #3

jkvis opened this issue Oct 22, 2020 · 0 comments

Comments

@jkvis
Copy link
Contributor

jkvis commented Oct 22, 2020

We need to understand the following warnings:

src/trie.c:137:9: warning: Potential leak of memory pointed to by 'split'
        free(node);
        ^~~~
src/trie.c:366:23: warning: Attempt to free released memory
    void* const ret = realloc(*key, len + node->len);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/trie.c:383:23: warning: Attempt to free released memory
    void* const ret = realloc(*key, len + 1);
                      ^~~~~~~~~~~~~~~~~~~~~~
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

1 participant