maskit opened a new issue, #10438:
URL: https://github.com/apache/trafficserver/issues/10438
cookie_remap.cc
```
862 if (key == "regex") {
18. noescape: Resource sub is not freed or pointed-to in setRegexMatch.
[[show
details](https://scan6.scan.coverity.com/eventId=34658252-23&modelId=34658252-5&fileInstanceId=164786227&filePath=%2Fplugins%2Fexperimental%2Fcookie_remap%2Fcookie_remap.cc&fileStart=379&fileEnd=402)]
863 bool ret = sub->setRegexMatch(val);
864
19. Condition !ret, taking true branch.
865 if (!ret) {
20. Jumping to label error.
866 goto error;
867 }
868 }
869
870 if (key == "bucket" || key == "hash") {
871 sub->setBucket(val);
872 }
873
874 if (key == "connector") {
875 o.addSubOp(sub);
876 sub = new subop();
877 }
878 }
879
880 o.addSubOp(sub);
881 return true;
882
883error:
884 TSDebug(MY_NAME, "error building operation");
CID 1508828 (#1-2 of 2): Resource leak (RESOURCE_LEAK)
21. leaked_storage: Variable sub going out of scope leaks the storage it
points to.
885 return false;
886}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]