problem with unwanted free() is persistent..!

This commit is contained in:
Erik 2016-02-09 22:43:08 +01:00
parent f7dedc3ed2
commit 482d8d9376
4 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,5 @@
http://evincarofautumn.blogspot.se/2016/01/thoughts-on-using-fractional-types-to.html
http://clang.llvm.org/docs/AddressSanitizer.html
http://blog.piston.rs/2016/01/23/dynamo/
https://wingolog.org/archives/2016/02/08/a-lambda-is-not-necessarily-a-closure

View File

@ -354,6 +354,8 @@
ast-after-all ast3
_ (println (str "vars-after-all-with-ret-val:\n" vars-after-all-with-ret-val))
]
{:ast ast-after-all
:vars vars-after-all-with-ret-val

View File

@ -260,6 +260,12 @@
(test-own-12)
;; (defn fill-array [a pos value]
;; (let [count (string-array-count (ref a))]
;; (if (< pos count)
;; (fill-array (string-array-set a pos value) (+ pos 1) value)
;; a)))
(defn own-13 ()

View File

@ -145,6 +145,11 @@
(fill-array (string-array-set a pos value) (+ pos 1) value)
a)))
(defn fill-array-strip [a]
(if true
(fill-array (string-array-set a 0 "hej") 0 "hej")
a))
(defn test-fill-array ()
(do
(def fill-ast (lambda-to-ast (code fill-array)))
@ -164,8 +169,8 @@
;; (ownership-analyze fill-array))
))
(test-fill-array)
;;(test-fill-array)
;;(bake fill-array)
;; (defn fill-array-2 [a pos value]