[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
Platform: Macintosh


External issue ID: 1324

 Description   

OFDecoder.decode(), lines 53-58

if (dataObject == null)

{ LOGGER.warn("Translated POJO is null"); return; }

msg.getMessageBuffer().release();
out.add(dataObject);
}

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

Generated at Wed Feb 07 20:28:46 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.