Submitter | Yuya Nishihara |
---|---|
Date | Sept. 23, 2021, 8:27 a.m. |
Message ID | <bc82b526a41b47adfe8c.1632385654@lemosa> |
Download | mbox | patch |
Permalink | /patch/49807/ |
State | New |
Headers | show
Return-Path: <mercurial-devel-bounces@mercurial-scm.org> X-Original-To: patchwork@mercurial-scm.org Delivered-To: patchwork@mercurial-scm.org Received: from localhost (localhost [127.0.0.1]) by mercurial-scm.org (Postfix) with ESMTP id 16FE42C095; Thu, 23 Sep 2021 04:29:11 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at mercurial-scm.org Received: from mercurial-scm.org ([127.0.0.1]) by localhost (mercurial-scm.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id d0l-Ntm63Vbj; Thu, 23 Sep 2021 04:28:32 -0400 (EDT) Received: from mercurial-scm.org (localhost [IPv6:::1]) by mercurial-scm.org (Postfix) with ESMTP id 6D5AB2C32C; Thu, 23 Sep 2021 04:28:32 -0400 (EDT) X-Original-To: mercurial-devel@mercurial-scm.org Delivered-To: mercurial-devel@mercurial-scm.org Received: from localhost (localhost [127.0.0.1]) by mercurial-scm.org (Postfix) with ESMTP id 7827F2C5FF for <mercurial-devel@mercurial-scm.org>; Thu, 23 Sep 2021 04:28:26 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at mercurial-scm.org Received: from mercurial-scm.org ([127.0.0.1]) by localhost (mercurial-scm.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id S7qW--OS-xMl for <mercurial-devel@mercurial-scm.org>; Thu, 23 Sep 2021 04:27:48 -0400 (EDT) Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by mercurial-scm.org (Postfix) with ESMTPS id 43DB72C32C for <mercurial-devel@mercurial-scm.org>; Thu, 23 Sep 2021 04:27:43 -0400 (EDT) Received: by mail-pj1-x1034.google.com with SMTP id on12-20020a17090b1d0c00b001997c60aa29so5294606pjb.1 for <mercurial-devel@mercurial-scm.org>; Thu, 23 Sep 2021 01:27:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:mime-version:content-transfer-encoding:subject:message-id :in-reply-to:references:user-agent:date:from:to; bh=0ug8lBAEiB9ysYWLHG/mbpBzNb7geJBW4lt1rDmZu8g=; b=ixHaRhLNutaLcl8P6Gwep6xCVpQoERAnT5Zixzq4HXQ9h++uKxUkUx0JbF9nPonNLe WA3d6Mak4hEEJ7YLH7WOmcPaXR5Z4L0CSd1qmJaBS2LMUj7JY9/bkJbwcww8U8GcqG1E 8lpD+AywMVTUysHqWczHZC4Q8euUIFAjNAjxowSDstvvqXhTzXh3hNuFcam/RbV+qgnS mBHXz49SnPJN0kGtttb3/lfI3XwVpwgclfMg1qVJAigslHRTpKMgoLlts0RZE0W6xJRf W6CMdATRBPLKPJaQRW4+JIzk0fzOmdi9ZB/URv8JVGHYde5CdjcusWPk9Ow+demsfN/L FkQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:mime-version:content-transfer-encoding :subject:message-id:in-reply-to:references:user-agent:date:from:to; bh=0ug8lBAEiB9ysYWLHG/mbpBzNb7geJBW4lt1rDmZu8g=; b=Prvw2QVsw7Lp6N4tllfl7MIHnW/3C/HTiN1UYkX6+7F0qZF5Hxw5OKQHRkeXgTwG63 qhgb+2HNxJt90NK78Qg/NJiB+tRoWjpnGB2jXeDCCxC6wvxBf9eh9hC0RcfuYw1lA4ZE VXqyfeC6u9Y67E7/1J/ALuaARss0fjCvZu8CdJGN8GVZM7qQxSvQHdPTGwwFWEmSwAR/ 48IjSM4EA8tOY6FlHa74kG8zOkHHjRC5o9CTcL9G3tq4DZmFL4VokNWnqK/yCyWDVNk3 Ip99tevFGbEJYsuRHV28MpKUs0rSeZ03miwrvrIBlJEy+r+McmhgfzqueAtTsyw7xhAU yofQ== X-Gm-Message-State: AOAM533qhvAiY3KNLpQtrvcFKG1If7h0xYN80EkRB/IJZlxMCywCgyyB QrjPgOfRWTa/r6EwqyDxV+oSbNY0kcI= X-Google-Smtp-Source: ABdhPJzlYeWmE8fT88k3Ij5xYu6zJtgXHqahqtqwZjOBTklFK7OOrMsmsSn/Na/2x7T5H7tATQy7BA== X-Received: by 2002:a17:90a:8403:: with SMTP id j3mr3947997pjn.195.1632385662799; Thu, 23 Sep 2021 01:27:42 -0700 (PDT) Received: from [127.0.1.1] (flets1.164060.netwave.or.jp. [219.124.164.60]) by smtp.gmail.com with ESMTPSA id b12sm7895682pjg.0.2021.09.23.01.27.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Sep 2021 01:27:42 -0700 (PDT) MIME-Version: 1.0 Subject: [PATCH 2 of 2] dirstate: fix leak of entry object in dirstate_item_from_v1_data() X-Mercurial-Node: bc82b526a41b47adfe8c49639b0664bcaa4b26b8 X-Mercurial-Series-Index: 2 X-Mercurial-Series-Total: 2 Message-Id: <bc82b526a41b47adfe8c.1632385654@lemosa> X-Mercurial-Series-Id: <13efd8fdc55fe3ed8ab1.1632385653@lemosa> In-Reply-To: <13efd8fdc55fe3ed8ab1.1632385653@lemosa> References: <13efd8fdc55fe3ed8ab1.1632385653@lemosa> User-Agent: Mercurial-patchbomb/5.9.1+hg126.5e7eea915019 Date: Thu, 23 Sep 2021 17:27:34 +0900 From: =?iso-8859-1?q?Yuya_Nishihara?= <yuya@tcha.org> To: mercurial-devel@mercurial-scm.org X-BeenThere: mercurial-devel@mercurial-scm.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <mercurial-devel.mercurial-scm.org> List-Unsubscribe: <https://www.mercurial-scm.org/mailman/options/mercurial-devel>, <mailto:mercurial-devel-request@mercurial-scm.org?subject=unsubscribe> List-Archive: <http://www.mercurial-scm.org/pipermail/mercurial-devel/> List-Post: <mailto:mercurial-devel@mercurial-scm.org> List-Help: <mailto:mercurial-devel-request@mercurial-scm.org?subject=help> List-Subscribe: <https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel>, <mailto:mercurial-devel-request@mercurial-scm.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: mercurial-devel-bounces@mercurial-scm.org Sender: "Mercurial-devel" <mercurial-devel-bounces@mercurial-scm.org> |
Comments
Yuya Nishihara - Sept. 23, 2021, 8:27 a.m.
Patch
diff --git a/mercurial/cext/parsers.c b/mercurial/cext/parsers.c --- a/mercurial/cext/parsers.c +++ b/mercurial/cext/parsers.c @@ -352,6 +352,7 @@ dirstate_item_from_v1_data(char state, i PyErr_Format(PyExc_RuntimeError, "unknown state: `%c` (%d, %d, %d)", state, mode, size, mtime, NULL); + Py_DECREF(t); return NULL; }