Ignore:
Timestamp:
Sep 26, 2013 7:57:59 AM (6 years ago)
Author:
Mei <mei@…>
Branches:
abac0-leak, master
Children:
80f0770
Parents:
f2622ee
Message:

1) tweak according valgrind's leak report

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libabac/abac_verifier.c

    rf2622ee r7764378  
    187187
    188188/**
     189 * Load an ID cert with an id
     190 */
     191int abac_verifier_load_id_id(abac_list_t *id_certs,abac_id_t *id,
     192        abac_keyid_map_t *km) {
     193
     194    if (id == NULL)
     195        return ABAC_CERT_INVALID;
     196
     197    return _load_id(id_certs,&id, km);
     198}
     199
     200/**
    189201 * Load an ID cert from a char ptr of a X509 pem data
    190202 * this is called from parse_privilege/parse_abac
     
    311323        );
    312324    }
    313 /* ??? MEI, attr is being reused, just free the list ptr */
     325
     326/* just free the list ptr */
    314327    abac_list_free(attr_list);
    315328    return sz;
     
    324337    abac_list_t *attr_list = abac_attribute_certs_from_file(id_certs,filename);
    325338
    326     if (abac_list_size(attr_list) == 0)
    327         return ABAC_CERT_INVALID;
     339    if (abac_list_size(attr_list) == 0) {
     340        abac_list_free(attr_list);
     341        return ABAC_CERT_INVALID;
     342    }
    328343
    329344    int ret=_load_attribute_certs(id_certs,attr_list, cred_list, km);
Note: See TracChangeset for help on using the changeset viewer.