Ignore:
Timestamp:
May 27, 2009, 11:39:15 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/libads/ldap_printer.c

    r133 r233  
    302302                DEBUG(3, ("Unable to open printer %s, error is %s.\n",
    303303                          printername, dos_errstr(result)));
     304                SAFE_FREE(printername);
    304305                return result;
    305306        }
    306307       
    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);
    308310                return WERR_NOMEM;
     311        }
    309312
    310313        result = rpccli_spoolss_enumprinterdataex(cli, mem_ctx, &pol, SPOOL_DSDRIVER_KEY, dsdriver_ctr);
     
    322325        }
    323326       
    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);
    325329                return WERR_NOMEM;
     330        }
    326331
    327332        result = rpccli_spoolss_enumprinterdataex(cli, mem_ctx, &pol, SPOOL_DSSPOOLER_KEY, dsspooler_ctr);
     
    344349
    345350        rpccli_spoolss_close_printer(cli, mem_ctx, &pol);
     351        SAFE_FREE(printername);
    346352
    347353        return result;
Note: See TracChangeset for help on using the changeset viewer.