changeset 2:76cd6ae48a1b

add comment for malloc-free
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Tue, 12 Nov 2013 13:10:39 +0900
parents 6d11ed2a5bed
children e6aa3b678e4a
files pointer_longjump.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pointer_longjump.c	Tue Nov 12 13:06:35 2013 +0900
+++ b/pointer_longjump.c	Tue Nov 12 13:10:39 2013 +0900
@@ -25,6 +25,7 @@
   if (setjmp(__enviroment)){
     free(__enviroment);
     printf("main1 return\n");
+    // We haven't freed __ret_p's memory... Where is the best position of the free()?
     return *__ret_p;
   }
   __return = (void*)return1;