lavabit / libdime

The DIME resolver library and command line utilities.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

memory leak in dmtp.c on realloc failure

ewirch opened this issue · comments

Line 1508:

if (!(result = realloc(result, rsize))) {
    PUSH_ERROR_SYSCALL("realloc");
    free(line);
    RET_ERROR_PTR(ERR_NOMEM, "could not read multiline DMTP response because of memory allocation problem");
}

Block previously pointed by result is not freed on realloc failure.

commented

fixed.