memory leak in ns1__srmStatusOfPutRequest

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: Major
    • None
    • Affects Version/s: None
    • Component/s: frontend
    • Security Level: Public (Visbile by non-authn users.)
    • None

      The address sanitizer reports an indirect memory leak in ns1__srmStatusOfPutRequest

      #0 0x7f143be752ef in operator new(unsigned long) (/lib64/libasan.so.5+0x10e2ef)
      #1 0x54e3ef in ns1__srmStatusOfPutRequest /home/centos/storm-frontend.git/src/frontend/asynch_status.cpp:48
      

      which corresponds to the line:

      request = new storm::PutStatusRequest(soap, req);

      I don't know what "indirect" means, but certainly the raw pointer is not safe in presence of early returns (including exceptions) in the following code. Better use a smart pointer.

            Assignee:
            Francesco Giacomini
            Reporter:
            Francesco Giacomini
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: