AdeptLanguage / Adept

The Adept Programming Language
GNU General Public License v3.0
120 stars 8 forks source link

Fix string ownership in Loop Labels example #336

Closed Apis035 closed 3 months ago

Apis035 commented 3 months ago

print(makeNumericSkewer()) and print(makeAlphabetSkewer()) is printing garbage. The returned string is still owned by those function and got freed at the end of the scope.

IsaacShelton commented 3 months ago

Nice catch :+1: