energia / Energia

Fork of Arduino for the Texas Instruments LaunchPad's
http://energia.nu
Other
798 stars 670 forks source link

lm4f: EthernetClient clear cpcb on connect error #982

Open ZuratonE opened 7 years ago

ZuratonE commented 7 years ago

patch fixes this situation:

EthernetClient a,b;

a.connect("1.1.1.1",0); //fail, cs->cpcb pointer not cleared b.connect("google.com",80); //ok if(a.connected()) a.disconnect(); //spoils b connection

robertinant commented 7 years ago

TivaC core has bee separated from the IDE and is now located at: https://github.com/energia/tivac-core.

There was indeed an issue here. Although simply assigning NULL to cpcb does not free it. Hence I added a free to it. I will incorporate this into the next release.

ZuratonE commented 7 years ago

isn't it freed in the irq?