memory leak in dmtp.c on realloc failure
ewirch opened this issue · comments
Eduard Wirch commented
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.
Ivan commented
fixed.