Changeset 8450


Ignore:
Timestamp:
03/01/13 13:33:12 (8 years ago)
Author:
gf
Message:

readers: Free configured readers on exit.

Make valgrind a little bit happier.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/oscam-config-reader.c

    r8449 r8450  
    989989}
    990990
     991int32_t free_readerdb(void) {
     992    int count = 0;
     993    struct s_reader *rdr;
     994    LL_ITER itr = ll_iter_create(configured_readers);
     995    while((rdr = ll_iter_next(&itr))) {
     996        free_reader(rdr);
     997        count++;
     998    }
     999    cs_log("readerdb %d readers freed", count);
     1000    ll_destroy(configured_readers);
     1001    return count;
     1002}
     1003
    9911004int32_t write_server(void)
    9921005{
  • trunk/oscam-config.h

    r8358 r8450  
    2020int32_t init_readerdb(void);
    2121void    free_reader(struct s_reader *rdr);
     22int32_t free_readerdb(void);
    2223int32_t write_server(void);
    2324
  • trunk/oscam.c

    r8448 r8450  
    14781478    cfg.account = NULL;
    14791479    init_free_sidtab();
     1480    free_readerdb();
    14801481    config_free();
    14811482
Note: See TracChangeset for help on using the changeset viewer.