GNS3/dynamips

A potential bug of memory leak(2)

Closed this issue · 0 comments

hello,I found a potentil bug of memory leak in source code of dynamips , would you help me check whether this bug is ture?thank you for your effort and patience very much.

step 1 :
In file dynamips/common/dev_c3600_eth.c , function dev_c3600_nm_eth_init line 48 :
Allocate memory to data

step 2 :
In file dynamips/common/dev_c3600_eth.c , function dev_c3600_nm_eth_init line 48 :
Select the false branch at this point (data==null is false)

step 3 :
In file dynamips/common/dev_c3600_eth.c , function dev_c3600_nm_eth_init line 67 :
Select the true branch at this point (bay_info==null is true), the allocated memory is leaked