Celix
  1. Celix
  2. CELIX-30

Memory bug in service registration

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      In the module service_registration.c the className value is assigned to the provided char pointer, but ownership is not claimed.
      Solution: change line 77 in service_registration from to:
      (*registration)->className = serviceName;
      (*registration)->className = apr_pstrdup(pool,serviceName);

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Pepijn Noltes
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development