From 989ad44d32c2e77972a966d91f1813b0b929f83b Mon Sep 17 00:00:00 2001 From: todd stecher Date: Mon, 19 Jan 2009 15:09:51 -0800 Subject: Memory leaks and other fixes found by Coverity --- testsuite/printing/psec.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'testsuite') diff --git a/testsuite/printing/psec.c b/testsuite/printing/psec.c index 33a45e89d0..051837cec9 100644 --- a/testsuite/printing/psec.c +++ b/testsuite/printing/psec.c @@ -352,8 +352,11 @@ int psec_setsec(char *printer) goto done; } - prs_init(&ps, (uint32)sec_desc_size(sdb->sec) + - sizeof(SEC_DESC_BUF), 4, mem_ctx, MARSHALL); + if (!prs_init(&ps, (uint32)sec_desc_size(sdb->sec) + + sizeof(SEC_DESC_BUF), 4, mem_ctx, MARSHALL)) { + printf("prs_init() failed\n"); + goto done; + } if (!sec_io_desc_buf("nt_printing_setsec", &sdb, &ps, 1)) { printf("sec_io_desc_buf failed\n"); -- cgit