diff options
author | Tim Potter <tpot@samba.org> | 2001-08-06 02:13:23 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-08-06 02:13:23 +0000 |
commit | 54fc7e1abaff6403843235e1ab06edce14f5fa7b (patch) | |
tree | 24ea1c021cd39cb326599293a28c1f2f6d253ac5 /source3 | |
parent | 6128f584a46a565bce105d8125ac9efe06b7961a (diff) | |
download | samba-54fc7e1abaff6403843235e1ab06edce14f5fa7b.tar.gz samba-54fc7e1abaff6403843235e1ab06edce14f5fa7b.tar.bz2 samba-54fc7e1abaff6403843235e1ab06edce14f5fa7b.zip |
Changed lone malloc() call to talloc(). Spotted by
Claudia Moroder <claudiamoroder@st-ulrich.suedtirol.net>
(This used to be commit 99ce277fc857069f86824a3c0cd8012f4cede1b6)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/cli_spoolss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/cli_spoolss.c b/source3/libsmb/cli_spoolss.c index 2c962ef27a..4b0c381394 100644 --- a/source3/libsmb/cli_spoolss.c +++ b/source3/libsmb/cli_spoolss.c @@ -221,7 +221,7 @@ static void decode_printer_info_0( uint32 i; PRINTER_INFO_0 *inf; - inf=(PRINTER_INFO_0 *)malloc(returned*sizeof(PRINTER_INFO_0)); + inf=(PRINTER_INFO_0 *)talloc(mem_ctx, returned*sizeof(PRINTER_INFO_0)); buffer->prs.data_offset=0; |