From: Tim Potter Date: Mon, 6 Aug 2001 02:13:23 +0000 (+0000) Subject: Changed lone malloc() call to talloc(). Spotted by X-Git-Tag: samba-2.2.5pre1~1693^2~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=99ce277fc857069f86824a3c0cd8012f4cede1b6;p=thirdparty%2Fsamba.git Changed lone malloc() call to talloc(). Spotted by Claudia Moroder --- diff --git a/source/libsmb/cli_spoolss.c b/source/libsmb/cli_spoolss.c index 2c962ef27a0..4b0c381394b 100644 --- a/source/libsmb/cli_spoolss.c +++ b/source/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;