]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Changed lone malloc() call to talloc(). Spotted by
authorTim Potter <tpot@samba.org>
Mon, 6 Aug 2001 02:13:23 +0000 (02:13 +0000)
committerTim Potter <tpot@samba.org>
Mon, 6 Aug 2001 02:13:23 +0000 (02:13 +0000)
Claudia Moroder <claudiamoroder@st-ulrich.suedtirol.net>

source/libsmb/cli_spoolss.c

index 2c962ef27a0928df7799c1eedb1cb4bbad8c2f06..4b0c381394b4eae92a6ccbf4dc13f86fd49d627a 100644 (file)
@@ -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;