diff options
author | Tim Potter <tpot@samba.org> | 2001-01-12 17:53:47 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-01-12 17:53:47 +0000 |
commit | eb1e855f4e8c02b643e6da5f63897138ad8e92ea (patch) | |
tree | 77d2b242e43a8ba64dfef92ac28ee14553ae6175 /source3/rpcclient | |
parent | 338fd23290cb0770b59cb77ef4733bb8da6d3164 (diff) | |
download | samba-eb1e855f4e8c02b643e6da5f63897138ad8e92ea.tar.gz samba-eb1e855f4e8c02b643e6da5f63897138ad8e92ea.tar.xz samba-eb1e855f4e8c02b643e6da5f63897138ad8e92ea.zip |
Memory leak fixes spotted by insure.
(This used to be commit 8072ee62b082df5d06459667615bb3b78461ec0a)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/cmd_lsarpc.c | 8 | ||||
-rw-r--r-- | source3/rpcclient/cmd_spoolss.c | 7 |
2 files changed, 14 insertions, 1 deletions
diff --git a/source3/rpcclient/cmd_lsarpc.c b/source3/rpcclient/cmd_lsarpc.c index b6d3568668f..d9e5ac397f0 100644 --- a/source3/rpcclient/cmd_lsarpc.c +++ b/source3/rpcclient/cmd_lsarpc.c @@ -82,6 +82,8 @@ static uint32 cmd_lsa_query_info_policy(int argc, char **argv) cli_lsa_close(&cli, &pol); } + cli_lsa_shutdown(&cli); + return result; } @@ -147,6 +149,8 @@ static uint32 cmd_lsa_lookup_names(int argc, char **argv) cli_lsa_close(&cli, &pol); } + cli_lsa_shutdown(&cli); + return result; } @@ -232,6 +236,8 @@ static uint32 cmd_lsa_lookup_sids(int argc, char **argv) cli_lsa_close(&cli, &pol); } + cli_lsa_shutdown(&cli); + return result; } @@ -303,6 +309,8 @@ static uint32 cmd_lsa_enum_trust_dom(int argc, char **argv) cli_lsa_close(&cli, &pol); } + cli_lsa_shutdown(&cli); + return result; } diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c index 152ec8aa37d..b491a3003ea 100644 --- a/source3/rpcclient/cmd_spoolss.c +++ b/source3/rpcclient/cmd_spoolss.c @@ -278,6 +278,8 @@ static uint32 cmd_spoolss_enum_printers(int argc, char **argv) } done: + cli_spoolss_shutdown(&cli); + return result; } @@ -356,13 +358,15 @@ static uint32 cmd_spoolss_enum_ports(int argc, char **argv) display_port_info_2(&ctr.port.info_2[i]); break; default: - printf("unknown info level %s\n", info_level); + printf("unknown info level %d\n", info_level); break; } } } done: + cli_spoolss_shutdown(&cli); + return result; } @@ -435,6 +439,7 @@ static uint32 cmd_spoolss_getprinter(int argc, char **argv) done: if (opened_hnd) cli_spoolss_closeprinter(&cli, &pol); + cli_spoolss_shutdown(&cli); return result; |