summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-06-02 19:42:11 +0000
committerJeremy Allison <jra@samba.org>2000-06-02 19:42:11 +0000
commit2472ab1e60c27bf8ac84e32e67c8cb18e5647306 (patch)
tree1599b27333278f28d6505250561805a13531285d /source3/printing
parent01c4ecd2343a4c87a0f023cd58382bf08610304e (diff)
downloadsamba-2472ab1e60c27bf8ac84e32e67c8cb18e5647306.tar.gz
samba-2472ab1e60c27bf8ac84e32e67c8cb18e5647306.tar.bz2
samba-2472ab1e60c27bf8ac84e32e67c8cb18e5647306.zip
More memory corruption (leaks etc.) fixes.
Jeremy. (This used to be commit 71a0621f552083880e89923055e8bd14d0b1b82f)
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/nt_printing.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 82facbe453..40f1f793c8 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -875,6 +875,7 @@ static void free_nt_printer_info_level_2(NT_PRINTER_INFO_LEVEL_2 **info_ptr)
free_nt_printer_param(&tofree);
}
+ safe_free(*info_ptr);
*info_ptr = NULL;
}
@@ -1048,6 +1049,7 @@ static uint32 get_a_printer_2(NT_PRINTER_INFO_LEVEL_2 **info_ptr, fstring sharen
nt_printing_getsec(sharename, &info.secdesc_buf);
+ safe_free(dbuf.dptr);
*info_ptr=memdup(&info, sizeof(info));
return 0;