Menu

#2825 imm: memory leaked in immnd

5.18.04
fixed
nobody
None
defect
imm
nd
major
False
2018-04-17
2018-04-02
No

Allocated memory is not freed before returning from the function setCcbErrorString. Here is the code (ImmModel.cc)

::: C++
void ImmModel::setCcbErrorString(...) {
  int errLen = strlen(errorString) + 1;
  char* fmtError = (char*)malloc(errLen);

  if ((ccb->mAugCcbParent && !ccb->mAugCcbParent->mOriginatingConn) ||
      (!ccb->mOriginatingConn)) {
      ** return;**
  }
  ...

Related

Wiki: ChangeLog-5.18.04

Discussion

  • Vu Minh Nguyen

    Vu Minh Nguyen - 2018-04-03
    • status: assigned --> review
     
  • Vu Minh Nguyen

    Vu Minh Nguyen - 2018-04-17
    • status: review --> fixed
    • assigned_to: Vu Minh Nguyen --> nobody
     
  • Vu Minh Nguyen

    Vu Minh Nguyen - 2018-04-17

    commit 66cd4d96e13541b9b799c87894ba1bd986a4c6f3 (HEAD, origin/develop, ticket-2825, develop)
    Author: Vu Minh Nguyen vu.m.nguyen@dektech.com.au
    Date: Tue Apr 17 14:30:52 2018 +0700

    imm: fix memory leaked in immnd [#2825]
    
    The allocated memory is not freed before returning from the function
    ImmModel::setCcbErrorString().
    

    commit ed27311f642082a1acca44da0a729621db6cf5cd (HEAD, origin/release, release)
    Author: Vu Minh Nguyen vu.m.nguyen@dektech.com.au
    Date: Tue Apr 17 14:30:52 2018 +0700

    imm: fix memory leaked in immnd [#2825]
    
    The allocated memory is not freed before returning from the function
    ImmModel::setCcbErrorString().
    
     

Log in to post a comment.