[mw-devel] [Git][arthur/mw][master] Fix a double-free in scr_set
Andrew Price
welshbyte at sucs.org
Tue Oct 3 12:24:17 BST 2017
Andrew Price pushed to branch master at Justin Mitchell / mw
Commits:
a940af45 by Andrew Price at 2017-10-03T12:23:40+01:00
Fix a double-free in scr_set
Fixes #27
- - - - -
1 changed file:
- src/client/script_inst.c
Changes:
=====================================
src/client/script_inst.c
=====================================
--- a/src/client/script_inst.c
+++ b/src/client/script_inst.c
@@ -1018,7 +1018,6 @@ void scr_set(struct code *pc, int fargc, char **fargv)
if (!eval_var(what, &var))
{
scr_devel_msg(pc, "'%s' is not a valid variable name", what);
- free(what);
return;
}
View it on GitLab: https://projects.sucs.org/arthur/mw/commit/a940af45fe14e113d86c7147271f9bd7c7ab89cb
---
View it on GitLab: https://projects.sucs.org/arthur/mw/commit/a940af45fe14e113d86c7147271f9bd7c7ab89cb
You're receiving this email because of your account on projects.sucs.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/mw-devel/attachments/20171003/4721d02d/attachment.html>
More information about the mw-devel
mailing list