google-code-export / gambas

Automatically exported from code.google.com/p/gambas
1 stars 0 forks source link

"Input" leaks memory #224

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1) Describe the problem.
The reference counting is wrong when using the "Input" statement.

2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):

Version: TRUNK
Revision: r4543

3) Provide a little project that reproduces the bug or the crash.
Public Sub Main
  Dim s As String
  Input s
End

Run the program, input something, this is the result:
gbx3: warning: 2 allocation(s) non freed.

Original issue reported on code.google.com by emil.len...@gmail.com on 13 Mar 2012 at 1:21

GoogleCodeExporter commented 9 years ago
Fixed in revision #4545.

Original comment by benoit.m...@gmail.com on 13 Mar 2012 at 2:39

GoogleCodeExporter commented 9 years ago
It seems like the Input statement does not use "Val" anymore to convert the 
input... If so, change the documentation.

Original comment by emil.len...@gmail.com on 13 Mar 2012 at 8:17

GoogleCodeExporter commented 9 years ago
Fixed in revision #4549.

Original comment by benoit.m...@gmail.com on 14 Mar 2012 at 1:57