Changeset 221 for branches/samba-3.3.x/source/libads/ldap_printer.c
- Timestamp:
- May 24, 2009, 7:17:10 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/libads/ldap_printer.c
r206 r221 329 329 DEBUG(3, ("Unable to open printer %s, error is %s.\n", 330 330 printername, dos_errstr(result))); 331 SAFE_FREE(printername); 331 332 return result; 332 333 } 333 334 334 if ( !(dsdriver_ctr = TALLOC_ZERO_P( mem_ctx, REGVAL_CTR )) ) 335 if ( !(dsdriver_ctr = TALLOC_ZERO_P( mem_ctx, REGVAL_CTR )) ) { 336 SAFE_FREE(printername); 335 337 return WERR_NOMEM; 338 } 336 339 337 340 result = rpccli_spoolss_enumprinterdataex(cli, mem_ctx, &pol, SPOOL_DSDRIVER_KEY, dsdriver_ctr); … … 349 352 } 350 353 351 if ( !(dsspooler_ctr = TALLOC_ZERO_P( mem_ctx, REGVAL_CTR )) ) 354 if ( !(dsspooler_ctr = TALLOC_ZERO_P( mem_ctx, REGVAL_CTR )) ) { 355 SAFE_FREE(printername); 352 356 return WERR_NOMEM; 357 } 353 358 354 359 result = rpccli_spoolss_enumprinterdataex(cli, mem_ctx, &pol, SPOOL_DSSPOOLER_KEY, dsspooler_ctr); … … 371 376 372 377 rpccli_spoolss_close_printer(cli, mem_ctx, &pol); 378 SAFE_FREE(printername); 373 379 374 380 return result;
Note:
See TracChangeset
for help on using the changeset viewer.