diff options
author | Volker Lendecke <vl@samba.org> | 2009-03-26 14:54:18 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-03-26 14:58:38 +0100 |
commit | 2d087a0c156dc95086a39e297b24ef6889e1a50d (patch) | |
tree | 2f4c5dbce92770bf68f7f5c1c96516dd1c4de27a /source3/lib | |
parent | 5603c0f2ba9d5b90e5f8b71e779ec037053f04f8 (diff) | |
download | samba-2d087a0c156dc95086a39e297b24ef6889e1a50d.tar.gz samba-2d087a0c156dc95086a39e297b24ef6889e1a50d.tar.bz2 samba-2d087a0c156dc95086a39e297b24ef6889e1a50d.zip |
Fix a talloc/malloc screwup in file_lines_pload
Another bug due to careless merge to /lib :-(((
Volker
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_file.c b/source3/lib/util_file.c index c5a9b7c29a..50ff844762 100644 --- a/source3/lib/util_file.c +++ b/source3/lib/util_file.c @@ -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); |