 
       // add to config
       nvcompConfigAddRLE_BP(
-          &config,
+          config.get(),
           inputId,
           maxSegmentSize,
           valId,

          runId,
          runType,
          bitPacking);
      config.nodes[valId].length = metadata->getNumElementsOf(valId);
      config.nodes[runId].length = metadata->getNumElementsOf(runId);

      // store vals (apply delta if necessary)
      if (numRLEs - 1 - r < numDeltas) {

  *handle = id;
  nvcompIntHandle_t& h = handles[id];

  h.config = std::move(config);
  h.stream = stream;

  h.workspaceBytes = workspaceBytes;
