Index: modules/textops/textops.c =================================================================== --- modules/textops/textops.c (revision 2368) +++ modules/textops/textops.c (working copy) @@ -639,6 +639,7 @@ act.elem[0].type = STRING_ST; act.elem[0].u.string = result->s; rval = do_action(&act, msg); + pkg_free(result->s); pkg_free(result); return rval; }