DebugCmds: fix memory leak

This commit is contained in:
Max Kellermann 2020-02-19 10:25:58 +01:00
parent bb1390caaa
commit 37e7e914dc

View file

@ -570,6 +570,7 @@ int dbg_cmd_print(DebugCmd cmd, const vector<string>& args)
{
ODesc d;
val->Describe(&d);
Unref(val);
debug_msg("%s\n", d.Description());
}
else