Fix use after free
authorColin Leroy <colin@colino.net>
Fri, 2 May 2014 12:10:37 +0000 (14:10 +0200)
committerColin Leroy <colin@colino.net>
Fri, 2 May 2014 12:10:37 +0000 (14:10 +0200)
src/plugins/vcalendar/libical/libical/icalmime.c

index 7188e00..78cd414 100644 (file)
@@ -101,7 +101,7 @@ void* icalmime_text_end_part(void* part)
 
     free(impl);
 
 
     free(impl);
 
-    return impl->buf;
+    return buf;
 }
 
 void icalmime_text_free_part(void *part)
 }
 
 void icalmime_text_free_part(void *part)