GNS3/dynamips

A potential bug of memory leak(5)

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_c7200_serial.c , function dev_c7200_pa_8t_init line 136 :
Allocate memory to data

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

step 3 :
In file dynamips/common/dev_c7200_serial.c , function dev_c7200_pa_8t_init line 152 :
Select the false branch at this point (data->mueslix[0]==null is false)

step 4 :
In file dynamips/common/dev_c7200_serial.c , function dev_c7200_pa_8t_init line 158 :
Select the true branch at this point (data->mueslix[1]==null is true), the allocated memory is leaked