Fix a double free problem in codegen.c; fix #3378

This issue was first reported by https://hackerone.com/geeknik
The fix was proposed by @titanous
This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-01-23 16:53:31 +09:00
parent 3ce82603a5
commit f0f095bc13
3 changed files with 6 additions and 4 deletions
+1
View File
@@ -39,6 +39,7 @@ typedef struct mrb_irep {
struct mrb_locals *lv;
/* debug info */
mrb_bool own_filename;
const char *filename;
uint16_t *lines;
struct mrb_irep_debug_info* debug_info;