get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 94886,
    "url": "https://patches.dpdk.org/api/patches/94886/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210628090249.70873-1-winsome8282@163.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20210628090249.70873-1-winsome8282@163.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210628090249.70873-1-winsome8282@163.com",
    "date": "2021-06-28T09:02:49",
    "name": "mem: fix mem leak issue when attaching a PCI device without driver to DPDK",
    "commit_ref": null,
    "pull_url": null,
    "state": "rejected",
    "archived": true,
    "hash": "6b6a3624bccdcfd88a27ef94209dbd712b1f4d65",
    "submitter": {
        "id": 2271,
        "url": "https://patches.dpdk.org/api/people/2271/?format=api",
        "name": "RickZhong",
        "email": "winsome8282@163.com"
    },
    "delegate": {
        "id": 24651,
        "url": "https://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210628090249.70873-1-winsome8282@163.com/mbox/",
    "series": [
        {
            "id": 17498,
            "url": "https://patches.dpdk.org/api/series/17498/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=17498",
            "date": "2021-06-28T09:02:49",
            "name": "mem: fix mem leak issue when attaching a PCI device without driver to DPDK",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/17498/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/94886/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/94886/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 1BAB3A0C3F;\n\tMon, 28 Jun 2021 11:03:04 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 84A6340692;\n\tMon, 28 Jun 2021 11:03:03 +0200 (CEST)",
            "from m12-13.163.com (m12-13.163.com [220.181.12.13])\n by mails.dpdk.org (Postfix) with ESMTP id 789534068A\n for <dev@dpdk.org>; Mon, 28 Jun 2021 11:03:01 +0200 (CEST)",
            "from localhost.localdomain (unknown [106.120.101.58])\n by smtp9 (Coremail) with SMTP id DcCowAC3+sxBkNlgXlZCIg--.57013S2;\n Mon, 28 Jun 2021 17:02:58 +0800 (CST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com;\n s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=FxsVG\n mpWSkiocKgap8dP5Xe5X4ElSPIYF8ZFMwW+12I=; b=goh76ZGgNpMDap/GuiirA\n K8y2R8higprh1N77QUwTZ+413i5FoCrZdjMnMXIHa0+fcVMNPs5k09fziuhMGo1m\n EvrEdf5xXqTAXoVfhFlbXCqHQoics4hd3nNo4mynTo5/ZH9WXUPfA2MFEuErSzKT\n DAb8rxCmRPdMVXJFPnQey4=",
        "From": "RickZhong <winsome8282@163.com>",
        "To": "dev@dpdk.org",
        "Cc": "RickZhong <winsome8282@163.com>",
        "Date": "Mon, 28 Jun 2021 17:02:49 +0800",
        "Message-Id": "<20210628090249.70873-1-winsome8282@163.com>",
        "X-Mailer": "git-send-email 2.27.0",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-CM-TRANSID": "DcCowAC3+sxBkNlgXlZCIg--.57013S2",
        "X-Coremail-Antispam": "1Uf129KBjvdXoWrur17tr4DXFy8KrWxXw1UZFb_yoWxAFX_ur\n savF4xXrWqvF93t34akrnxZryYkws2q3Z2vF4ft3Z3Xa42vr4kCas7ZFykGFyxGr43CF9I\n k3s8Jw18ur4SkjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT\n 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xRtXo27UUUUU==",
        "X-Originating-IP": "[106.120.101.58]",
        "X-CM-SenderInfo": "5zlq20dphyjmqs6rljoofrz/xtbBRRu-9FPAMun8mAABs4",
        "Subject": "[dpdk-dev] [PATCH] mem: fix mem leak issue when attaching a PCI\n device without driver to DPDK",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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": "when trying to attach a PCI device without driver to DPDK,\nthe 'dev' is malloced but not freed.\n\nSigned-off-by: RickZhong <winsome8282@163.com>\n---\n drivers/bus/pci/linux/pci.c | 1 +\n 1 file changed, 1 insertion(+)",
    "diff": "diff --git a/drivers/bus/pci/linux/pci.c b/drivers/bus/pci/linux/pci.c\nindex 0dc99e9cb..909502ecc 100644\n--- a/drivers/bus/pci/linux/pci.c\n+++ b/drivers/bus/pci/linux/pci.c\n@@ -332,6 +332,7 @@ pci_scan_one(const char *dirname, const struct rte_pci_addr *addr)\n \t\t\tdev->kdrv = RTE_PCI_KDRV_UNKNOWN;\n \t} else {\n \t\tdev->kdrv = RTE_PCI_KDRV_NONE;\n+\t\tfree(dev);\n \t\treturn 0;\n \t}\n \t/* device is valid, add in list (sorted) */\n",
    "prefixes": []
}