From 54fc7e1abaff6403843235e1ab06edce14f5fa7b Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Mon, 6 Aug 2001 02:13:23 +0000 Subject: Changed lone malloc() call to talloc(). Spotted by Claudia Moroder (This used to be commit 99ce277fc857069f86824a3c0cd8012f4cede1b6) --- source3/libsmb/cli_spoolss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/libsmb/cli_spoolss.c') 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; -- cgit