Fix a heavy memory corruption in p()/print()
If you free locally allocated ruby objects you're gonna have a BAAAD time
This commit is contained in:
parent
49e7b66a53
commit
ce70b6dc95
|
@ -114,8 +114,6 @@ static void printP(int argc, VALUE *argv,
|
||||||
}
|
}
|
||||||
|
|
||||||
showMsg(RSTRING_PTR(dispString));
|
showMsg(RSTRING_PTR(dispString));
|
||||||
|
|
||||||
rb_str_free(dispString);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RB_METHOD(mriPrint)
|
RB_METHOD(mriPrint)
|
||||||
|
|
Loading…
Reference in New Issue