get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 74985,
    "url": "http://patches.dpdk.org/api/patches/74985/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200729083754.1044630-1-rory.sexton@intel.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": "<20200729083754.1044630-1-rory.sexton@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200729083754.1044630-1-rory.sexton@intel.com",
    "date": "2020-07-29T08:37:54",
    "name": "[1/1] examples/vm_power_manager: fix resource leak",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "c5eae95f72bf6f840eb3d2265fd04dcfd4498d7e",
    "submitter": {
        "id": 619,
        "url": "http://patches.dpdk.org/api/people/619/?format=api",
        "name": "Sexton, Rory",
        "email": "rory.sexton@intel.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/20200729083754.1044630-1-rory.sexton@intel.com/mbox/",
    "series": [
        {
            "id": 11389,
            "url": "http://patches.dpdk.org/api/series/11389/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=11389",
            "date": "2020-07-29T08:37:54",
            "name": "[1/1] examples/vm_power_manager: fix resource leak",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/11389/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/74985/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/74985/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 0F70EA052B;\n\tWed, 29 Jul 2020 10:37:59 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id CCE861BFF5;\n\tWed, 29 Jul 2020 10:37:58 +0200 (CEST)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by dpdk.org (Postfix) with ESMTP id 0A60F4C93\n for <dev@dpdk.org>; Wed, 29 Jul 2020 10:37:56 +0200 (CEST)",
            "from fmsmga005.fm.intel.com ([10.253.24.32])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 29 Jul 2020 01:37:55 -0700",
            "from silpixa00399913.ir.intel.com ([10.237.213.189])\n by fmsmga005.fm.intel.com with ESMTP; 29 Jul 2020 01:37:54 -0700"
        ],
        "IronPort-SDR": [
            "\n NvRins1LmiEoxtOCVotE07j4Xw6v+LHRORS8+F+IwOBSR/X2JayoSurWLg4Mo3OSEegbER9zi4\n TrvvdDENwwug==",
            "\n S3459eJEQ22Pt3sas8LawJxckBSsbKCs9z39EcFe0PP7fFpIjmiZ5YkQuqjR9XZhg1gFqHibDx\n 0kKsHlbDqR2g=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9696\"; a=\"151359553\"",
            "E=Sophos;i=\"5.75,409,1589266800\"; d=\"scan'208\";a=\"151359553\"",
            "E=Sophos;i=\"5.75,409,1589266800\"; d=\"scan'208\";a=\"490685887\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Rory Sexton <rory.sexton@intel.com>",
        "To": "dev@dpdk.org,\n\tdavid.hunt@intel.com",
        "Cc": "marko.kovacevic@intel.com",
        "Date": "Wed, 29 Jul 2020 09:37:54 +0100",
        "Message-Id": "<20200729083754.1044630-1-rory.sexton@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH 1/1] examples/vm_power_manager: fix resource leak",
        "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": "Fix memory leak where variable oob_enable can go out of scope leaking\nthe storage it points to.\n\nCoverity issue: 337674\nFixes: 95f648ff9ee (\"examples/vm_power: make branch ratio threshold per core\")\n\nSigned-off-by: Rory Sexton <rory.sexton@intel.com>\n---\n examples/vm_power_manager/main.c | 1 +\n 1 file changed, 1 insertion(+)",
    "diff": "diff --git a/examples/vm_power_manager/main.c b/examples/vm_power_manager/main.c\nindex 77797b1e1..0242cca1a 100644\n--- a/examples/vm_power_manager/main.c\n+++ b/examples/vm_power_manager/main.c\n@@ -209,6 +209,7 @@ parse_args(int argc, char **argv)\n \t\t\t}\n \t\t\tif (branch_ratio <= 0.0 || branch_ratio > 100.0) {\n \t\t\t\tprintf(\"invalid branch ratio specified\\n\");\n+\t\t\t\tfree(oob_enable);\n \t\t\t\treturn -1;\n \t\t\t}\n \t\t\tfor (i = 0; i < ci->core_count; i++) {\n",
    "prefixes": [
        "1/1"
    ]
}