Changeset 7764378 for libabac/options.c


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/options.c

    r461541a r7764378  
    1919    );
    2020    exit(1);
     21}
     22
     23void free_options(options_t *opts)
     24{           
     25    if(opts->keystore) free(opts->keystore);
     26    if(opts->role) free(opts->role);
     27    if(opts->principal) free(opts->principal);
     28    if(opts->rulefile) free(opts->rulefile);
    2129}
    2230
Note: See TracChangeset for help on using the changeset viewer.