Skip to content

LLVM scan-build warnings #3

@jkvis

Description

@jkvis

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);
                      ^~~~~~~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions