free can't be executed when strdup "" in function getAddressFromInterface
Bug #1837344 reported by
YeHuiSheng
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
YeHuiSheng |
Bug Description
In the funciton getAddressFromI
When clstr_iface_name is point to strdup "", it is not null, but it's lenth is 0.
Then a little memory will be leaked because free won't be executed.
The strlen judgement need to be moved.
Changed in starlingx: | |
assignee: | nobody → YeHuiSheng (hsye) |
To post a comment you must log in.
Fix proposed to branch: master /review. opendev. org/671952
Review: https:/