Changeset 8449


Ignore:
Timestamp:
03/01/13 13:33:09 (9 years ago)
Author:
gf
Message:

readers: Do not leak entitlements on card change and reader freeing.

Reader entitlements are leaken when card is changed. Probably nobody
noticed because changing cards is not an event that happen often.

Location:
trunk
Files:
2 edited

Legend:

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

    r8444 r8449  
    981981
    982982#endif
     983    cs_clear_entitlement(rdr);
     984    if (rdr->ll_entitlements) {
     985        ll_destroy(rdr->ll_entitlements);
     986        rdr->ll_entitlements = NULL;
     987    }
    983988    add_garbage(rdr);
    984989}
  • trunk/reader-common.c

    r8377 r8449  
    1111#include "oscam-time.h"
    1212#include "oscam-work.h"
     13#include "oscam-reader.h"
    1314#include "reader-common.h"
    1415#include "csctapi/atr.h"
     
    3940  reader->reassemble_emm_len=0;
    4041  memset(reader->reassemble_emm, 0, sizeof(reader->reassemble_emm));
     42  cs_clear_entitlement(reader);
    4143}
    4244
Note: See TracChangeset for help on using the changeset viewer.