Don't leak exception message
commit2ca52ccb0aa8d5e357e9db8dd3a9ab151ba466e5
authorEdwin Smith <smith@fb.com>
Mon, 14 Sep 2015 18:48:11 +0000 (14 11:48 -0700)
committerhhvm-bot <hhvm-bot@fb.com>
Mon, 14 Sep 2015 21:17:18 +0000 (14 14:17 -0700)
tree179b13ce28367d7c48af6e7ea6db7f4c1c6a8431
parent30810ed412bc7cc56cb363467d71be51f3093a56
Don't leak exception message

Summary: With track_errors enabled, the runtime will set $php_errormsg to the
most recent message. When doing so, it wasn't decrefing the old message,
so they leaked.

Reviewed By: @ricklavoie, @markw65

Differential Revision: D2439114
hphp/runtime/base/execution-context.cpp