diff options
-rw-r--r-- | source3/registry/reg_backend_printing.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/registry/reg_backend_printing.c b/source3/registry/reg_backend_printing.c index 582989d8d1..b2cd553706 100644 --- a/source3/registry/reg_backend_printing.c +++ b/source3/registry/reg_backend_printing.c @@ -516,8 +516,7 @@ static int key_printers_fetch_values( const char *key, REGVAL_CTR *values ) if ( (key_index = lookup_printerkey( p_data, printerdatakey )) == -1 ) { /* failure....should never happen if the client has a valid open handle first */ DEBUG(10,("key_printers_fetch_values: Unknown keyname [%s]\n", printerdatakey)); - if ( printer ) - free_a_printer( &printer, 2 ); + free_a_printer( &printer, 2 ); return -1; } |