mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +03:00
Fix a talloc/malloc screwup in file_lines_pload
Another bug due to careless merge to /lib :-((( Volker
This commit is contained in:
parent
5603c0f2ba
commit
2d087a0c15
@ -39,7 +39,7 @@ static char *file_pload(const char *syscmd, size_t *size)
|
||||
total = 0;
|
||||
|
||||
while ((n = read(fd, buf, sizeof(buf))) > 0) {
|
||||
p = (char *)SMB_REALLOC(p, total + n + 1);
|
||||
p = talloc_realloc(NULL, p, char, total + n + 1);
|
||||
if (!p) {
|
||||
DEBUG(0,("file_pload: failed to expand buffer!\n"));
|
||||
close(fd);
|
||||
|
Loading…
x
Reference in New Issue
Block a user