diff options
-rw-r--r-- | source3/rpcclient/cmd_spoolss.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c index 137335962e..f04b6a8ec9 100644 --- a/source3/rpcclient/cmd_spoolss.c +++ b/source3/rpcclient/cmd_spoolss.c @@ -2396,9 +2396,10 @@ static WERROR cmd_spoolss_enum_printerkey( struct rpc_pipe_client *cli, curkey += strlen(subkey) + 1; } - safe_free(keylist); - done: + + SAFE_FREE(keylist); + if (got_hnd) rpccli_spoolss_close_printer(cli, mem_ctx, &hnd); |