Changeset 233 for branches/samba-3.2.x/source/libads/ldap_printer.c
- Timestamp:
- May 27, 2009, 11:39:15 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/libads/ldap_printer.c
r133 r233 302 302 DEBUG(3, ("Unable to open printer %s, error is %s.\n", 303 303 printername, dos_errstr(result))); 304 SAFE_FREE(printername); 304 305 return result; 305 306 } 306 307 307 if ( !(dsdriver_ctr = TALLOC_ZERO_P( mem_ctx, REGVAL_CTR )) ) 308 if ( !(dsdriver_ctr = TALLOC_ZERO_P( mem_ctx, REGVAL_CTR )) ) { 309 SAFE_FREE(printername); 308 310 return WERR_NOMEM; 311 } 309 312 310 313 result = rpccli_spoolss_enumprinterdataex(cli, mem_ctx, &pol, SPOOL_DSDRIVER_KEY, dsdriver_ctr); … … 322 325 } 323 326 324 if ( !(dsspooler_ctr = TALLOC_ZERO_P( mem_ctx, REGVAL_CTR )) ) 327 if ( !(dsspooler_ctr = TALLOC_ZERO_P( mem_ctx, REGVAL_CTR )) ) { 328 SAFE_FREE(printername); 325 329 return WERR_NOMEM; 330 } 326 331 327 332 result = rpccli_spoolss_enumprinterdataex(cli, mem_ctx, &pol, SPOOL_DSSPOOLER_KEY, dsspooler_ctr); … … 344 349 345 350 rpccli_spoolss_close_printer(cli, mem_ctx, &pol); 351 SAFE_FREE(printername); 346 352 347 353 return result;
Note:
See TracChangeset
for help on using the changeset viewer.