roken: Fix leak in new undump_not_file()
This commit is contained in:
@@ -112,7 +112,7 @@ undump_not_file(int fd, char **out, size_t *size, int nul_terminate)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
tmp = realloc(buf, bufsz + 1);
|
*out = tmp = realloc(buf, bufsz + 1);
|
||||||
if (tmp == NULL) {
|
if (tmp == NULL) {
|
||||||
free(buf);
|
free(buf);
|
||||||
return ENOMEM;
|
return ENOMEM;
|
||||||
|
Reference in New Issue
Block a user