Permalink
Browse files

Fix pe_regs leak in the GMCP handler example.

  • Loading branch information...
mike347 committed Dec 6, 2018
1 parent 99647fa commit 6db29d804a952bc11e4d6ac29b54dd753fbcaff6
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/bsd.c
@@ -3018,6 +3018,8 @@ GMCP_HANDLER(gmcp_softcode_example)
pe_regs_setenv(pe_regs, 2, msg);
queue_attribute_base_priv(obj, attrname, d->player, 1, pe_regs, QUEUE_DEFAULT,
NOTHING, NULL, NULL);
pe_regs_free(pe_regs);
return 1;
}

0 comments on commit 6db29d8

Please sign in to comment.