Skip to content

Commit

Permalink
Merge pull request #1050 from sippy/master_clean
Browse files Browse the repository at this point in the history
Fix a crash in the python module.
  • Loading branch information
bogdan-iancu committed Feb 13, 2017
2 parents 16b8b29 + 38bf266 commit f40707e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/python/python_msgobj.c
Expand Up @@ -269,7 +269,8 @@ msg_call_function(msgobject *self, PyObject *args)

rval = do_action(act, self->msg);

if ((act->elem[2].type == MODFIXUP_ST) && (act->elem[2].u.data)) {
if ((act->elem[2].type == MODFIXUP_ST) && (act->elem[2].u.data) &&
(act->elem[2].u.data != arg2)) {
pkg_free(act->elem[2].u.data);
}

Expand Down

0 comments on commit f40707e

Please sign in to comment.