Commit 6a1e68a
authored
[C#] Fixes mem leak on string pointer (#1389)
* + fixes: #1377
* + free only when the string is valid
* + free when ptr != 0
* use the "list" way to free a ptr
* + free when size > 0
* + free ptr for cases: ListCanonLift and ListLift1 parent ca9a3b5 commit 6a1e68a
1 file changed
Lines changed: 27 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
788 | 788 | | |
789 | 789 | | |
790 | 790 | | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
791 | 795 | | |
792 | 796 | | |
793 | 797 | | |
| |||
838 | 842 | | |
839 | 843 | | |
840 | 844 | | |
841 | | - | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
842 | 850 | | |
843 | | - | |
844 | | - | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
845 | 865 | | |
846 | 866 | | |
847 | 867 | | |
| |||
941 | 961 | | |
942 | 962 | | |
943 | 963 | | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
944 | 968 | | |
945 | 969 | | |
946 | 970 | | |
| |||
0 commit comments