From 48871e6302129222ac157f4ff8f63671ce0656ba Mon Sep 17 00:00:00 2001 From: Eric Branlund Date: Wed, 27 Nov 2019 19:58:38 -0800 Subject: [PATCH] Plugged memory leak when player inscribes an object. --- src/cmd-obj.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmd-obj.c b/src/cmd-obj.c index a7029580..84d709f7 100644 --- a/src/cmd-obj.c +++ b/src/cmd-obj.c @@ -210,6 +210,7 @@ void do_cmd_inscribe(struct command *cmd) return; obj->note = quark_add(str); + string_free(str); player->upkeep->notice |= (PN_COMBINE | PN_IGNORE); player->upkeep->redraw |= (PR_INVEN | PR_EQUIP); -- 2.21.0 (Apple Git-122.2)