summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-23 17:58:26 +0100
committerVolker Lendecke <vl@samba.org>2008-03-23 18:28:24 +0100
commit2e2f1d57b1d2732a9c67a65575a5e24876107ff6 (patch)
tree310b9cb3d7b22aaff79289881f933713de711445
parent988cffe9ca1b473a78a40a24e1db1ec437c8d055 (diff)
downloadsamba-2e2f1d57b1d2732a9c67a65575a5e24876107ff6.tar.gz
samba-2e2f1d57b1d2732a9c67a65575a5e24876107ff6.tar.bz2
samba-2e2f1d57b1d2732a9c67a65575a5e24876107ff6.zip
Fix Coverity ID 477
(This used to be commit f17b1b0fc6340d21f1a2f43aa7eb2e87f851c51f)
-rw-r--r--source3/registry/reg_backend_printing.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/registry/reg_backend_printing.c b/source3/registry/reg_backend_printing.c
index b2cd553706..5c1e6eb543 100644
--- a/source3/registry/reg_backend_printing.c
+++ b/source3/registry/reg_backend_printing.c
@@ -373,8 +373,7 @@ static bool key_printers_store_keys( const char *key, REGSUBKEY_CTR *subkeys )
/* cleanup */
- if ( printer )
- free_a_printer( &printer, 2 );
+ free_a_printer( &printer, 2 );
SAFE_FREE( existing_subkeys );