get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/81695/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 81695,
    "url": "http://patches.dpdk.org/api/patches/81695/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/32d8f2e1dca7ba254e6f5667d7198fadf4477349.1603207676.git.wangyunjian@huawei.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<32d8f2e1dca7ba254e6f5667d7198fadf4477349.1603207676.git.wangyunjian@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/32d8f2e1dca7ba254e6f5667d7198fadf4477349.1603207676.git.wangyunjian@huawei.com",
    "date": "2020-10-21T11:19:03",
    "name": "[v5,1/3] eal: fix memory leak when removing event_cb",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "15c7b7cf8617c52bb025e6ff1b4a165a5ea87d3e",
    "submitter": {
        "id": 551,
        "url": "http://patches.dpdk.org/api/people/551/?format=api",
        "name": "Yunjian Wang",
        "email": "wangyunjian@huawei.com"
    },
    "delegate": {
        "id": 24651,
        "url": "http://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/32d8f2e1dca7ba254e6f5667d7198fadf4477349.1603207676.git.wangyunjian@huawei.com/mbox/",
    "series": [
        {
            "id": 13175,
            "url": "http://patches.dpdk.org/api/series/13175/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=13175",
            "date": "2020-10-21T11:18:10",
            "name": "fixes for device event",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/13175/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/81695/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/81695/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 20323A04DF;\n\tWed, 21 Oct 2020 13:19:24 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 010CFAC65;\n\tWed, 21 Oct 2020 13:19:23 +0200 (CEST)",
            "from huawei.com (szxga05-in.huawei.com [45.249.212.191])\n by dpdk.org (Postfix) with ESMTP id 97765AC63;\n Wed, 21 Oct 2020 13:19:20 +0200 (CEST)",
            "from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60])\n by Forcepoint Email with ESMTP id D45C2D565F1807B674B5;\n Wed, 21 Oct 2020 19:19:17 +0800 (CST)",
            "from localhost (10.174.187.156) by DGGEMS401-HUB.china.huawei.com\n (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Wed, 21 Oct 2020\n 19:19:07 +0800"
        ],
        "From": "wangyunjian <wangyunjian@huawei.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<david.marchand@redhat.com>, <jia.guo@intel.com>, <jerinj@marvell.com>,\n <jerry.lilijun@huawei.com>, <xudingke@huawei.com>, Yunjian Wang\n <wangyunjian@huawei.com>, <stable@dpdk.org>",
        "Date": "Wed, 21 Oct 2020 19:19:03 +0800",
        "Message-ID": "\n <32d8f2e1dca7ba254e6f5667d7198fadf4477349.1603207676.git.wangyunjian@huawei.com>",
        "X-Mailer": "git-send-email 1.9.5.msysgit.1",
        "In-Reply-To": "<cover.1603207676.git.wangyunjian@huawei.com>",
        "References": "<cover.1603207676.git.wangyunjian@huawei.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.174.187.156]",
        "X-CFilter-Loop": "Reflected",
        "Subject": "[dpdk-dev] [PATCH v5 1/3] eal: fix memory leak when removing\n\tevent_cb",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Yunjian Wang <wangyunjian@huawei.com>\n\nThe event_cb->dev_name is not freed when freeing event_cb,\nand this causes a memory leak.\n\nFixes: a753e53d517b (\"eal: add device event monitor framework\")\nCc: stable@dpdk.org\n\nSigned-off-by: Yunjian Wang <wangyunjian@huawei.com>\nAcked-by: Jeff Guo <jia.guo@intel.com>\n---\n lib/librte_eal/common/eal_common_dev.c | 1 +\n 1 file changed, 1 insertion(+)",
    "diff": "diff --git a/lib/librte_eal/common/eal_common_dev.c b/lib/librte_eal/common/eal_common_dev.c\nindex 9e4f09d83e..363a2ca95e 100644\n--- a/lib/librte_eal/common/eal_common_dev.c\n+++ b/lib/librte_eal/common/eal_common_dev.c\n@@ -526,6 +526,7 @@ rte_dev_event_callback_unregister(const char *device_name,\n \t\t */\n \t\tif (event_cb->active == 0) {\n \t\t\tTAILQ_REMOVE(&dev_event_cbs, event_cb, next);\n+\t\t\tfree(event_cb->dev_name);\n \t\t\tfree(event_cb);\n \t\t\tret++;\n \t\t} else {\n",
    "prefixes": [
        "v5",
        "1/3"
    ]
}