Changeset 8682

Show
Ignore:
Timestamp:
12/20/10 10:43:16 (2 years ago)
Author:
mtmoore
Message:

add various free calls on credential struct

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/cu-security-branch/src/apps/admin/pvfs2-gencred.c

    r8678 r8682  
    281281    int ngroups; 
    282282    PVFS_credential credential; 
    283     int ret; 
     283    int ret = EXIT_SUCCESS; 
    284284     
    285285    ret = parse_options(argc, argv, &opts); 
     
    411411    if (ret != EXIT_SUCCESS) 
    412412    { 
     413        if( credential.issuer ) 
     414        { 
     415            free( credential.issuer ); 
     416        } 
     417 
     418        if( credential.group_array ) 
     419        { 
     420            free( credential.group_array); 
     421        } 
    413422        return ret; 
    414423    } 
     
    419428    if (ret != EXIT_SUCCESS) 
    420429    { 
     430        if( credential.issuer ) 
     431        { 
     432            free( credential.issuer ); 
     433        } 
     434        if( credential.group_array ) 
     435        { 
     436            free( credential.group_array ); 
     437        } 
    421438        return ret; 
    422439    } 
     
    425442    if (ret != EXIT_SUCCESS) 
    426443    { 
     444        if( credential.issuer ) 
     445        { 
     446            free( credential.issuer ); 
     447        } 
     448        if( credential.group_array ) 
     449        { 
     450            free( credential.group_array ); 
     451        } 
    427452        return ret; 
    428453    } 
    429      
     454    
     455    if( credential.issuer ) 
     456    { 
     457        free( credential.issuer ); 
     458    } 
     459    if( credential.group_array ) 
     460    { 
     461        free( credential.group_array ); 
     462    } 
    430463    return EXIT_SUCCESS; 
    431464}