[OPNFLWJAVA-28] Potential buffer leak Created: 07/Jul/14 Updated: 03/May/18 Resolved: 08/Jul/14 |
|
| Status: | Resolved |
| Project: | openflowjava |
| Component/s: | General |
| Affects Version/s: | unspecified |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Jan Medved | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Mac OS |
||
| External issue ID: | 1324 |
| Description |
|
OFDecoder.decode(), lines 53-58 if (dataObject == null) { LOGGER.warn("Translated POJO is null"); return; } msg.getMessageBuffer().release(); If the decoded object happens to be null, we do not release the original message buffer. I am not sure if it’s used somewhere else (unlikely, that would be bad design) - if it is not, we have a potential buffer leak. |
| Comments |
| Comment by Michal Polkorab [ 08/Jul/14 ] |
|
Hello, fix is pushed here: https://git.opendaylight.org/gerrit/#/c/8787/ Michal Polkorab |