Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/740956/?format=api
{ "id": 740956, "url": "http://patchwork.ozlabs.org/api/patches/740956/?format=api", "web_url": "http://patchwork.ozlabs.org/project/lede/patch/1490009989-29321-1-git-send-email-yszhou4tech@gmail.com/", "project": { "id": 54, "url": "http://patchwork.ozlabs.org/api/projects/54/?format=api", "name": "LEDE development", "link_name": "lede", "list_id": "lede-dev.lists.infradead.org", "list_email": "lede-dev@lists.infradead.org", "web_url": "http://lede-project.org/", "scm_url": "", "webscm_url": "http://git.lede-project.org/", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1490009989-29321-1-git-send-email-yszhou4tech@gmail.com>", "list_archive_url": null, "date": "2017-03-20T11:39:48", "name": "[LEDE-DEV,opkg-lede,1/2] libbb: xreadlink: fix memory leak on failure case", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "e67ff1258b42b9f76bf1ad03d0a152c0d90851d3", "submitter": { "id": 65295, "url": "http://patchwork.ozlabs.org/api/people/65295/?format=api", "name": "Yousong Zhou", "email": "yszhou4tech@gmail.com" }, "delegate": { "id": 54635, "url": "http://patchwork.ozlabs.org/api/users/54635/?format=api", "username": "jow", "first_name": "Jo-Philipp", "last_name": "Wich", "email": "jow@openwrt.org" }, "mbox": "http://patchwork.ozlabs.org/project/lede/patch/1490009989-29321-1-git-send-email-yszhou4tech@gmail.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/740956/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/740956/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Received": [ "from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3vmvC21bSKz9s1y\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 20 Mar 2017 22:40:30 +1100 (AEDT)", "from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1cpvfY-0006rf-5k; Mon, 20 Mar 2017 11:40:12 +0000", "from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1cpvfU-0005cU-KP\n\tfor lede-dev@lists.infradead.org; Mon, 20 Mar 2017 11:40:10 +0000", "by mail-pf0-x241.google.com with SMTP id n11so5577580pfg.2\n\tfor <lede-dev@lists.infradead.org>;\n\tMon, 20 Mar 2017 04:39:47 -0700 (PDT)", "from titan.office.mos ([103.29.140.57])\n\tby smtp.gmail.com with ESMTPSA id\n\ta77sm32791902pfl.91.2017.03.20.04.39.45\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tMon, 20 Mar 2017 04:39:46 -0700 (PDT)" ], "Authentication-Results": "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"enhBaW97\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"UeXCUTZz\"; dkim-atps=neutral", "DKIM-Signature": [ "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe:\n\tList-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id:\n\tDate:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:\n\tResent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:\n\tList-Owner; bh=Ny20C5D0V5B8LdMFOouJnW8hBnfK3LBQQeKEyXRUfh0=;\n\tb=enhBaW97LMEgN/\n\tIv31xhzeW6IFGIGjmVibn+kv+W3dIK2OGGcLKJTvcdDgag389ecpeEwr8bndCICalrV7yy9rEfDaV\n\twJmR1W0fwqFySYXWZ9eeU6Z4pkhLOeiBaIgmTWPTNloWwS3+zw9KT3q9lR4AsYvDVAzpc6XvaL2K7\n\toIPpRp+0fyIujzjAv8f60xtqmeup87368nB0nSJUW5qYpHHn/qoKD80WEOBrUAEulxLl8Arq61dRr\n\tBRU/DHzT6V7xGVvabBvJzYuy9YkUigmbwnIE3VoEAnZjfG7DB9lslpO6cKsdkUxqLVpafaEsRMQKa\n\tss5ooRHKTfL2X5YaPFJw==;", "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id;\n\tbh=DekPruH15onsj0wZEzpWChvul10YADjolb5jSrhjlYM=;\n\tb=UeXCUTZzLlyXAKghH34QLDEpWaUgZqp2gaOThh9FC0rPrUR1a2pmgS/Yj2rQvkb90K\n\tGorAaB1ret29DfbFVg4+S23agQ7qUoB1XoD62R74chcRzBEoDC12B+YG32ec2AkFYQ3V\n\tx5UQpU0Vi09H7ffrHxezsg9sGfJ+2u784dPR5yoq89m/SecR+/kRu6Tu5Ix4V1U++Hml\n\tjwf2wFYcZ+YGid3ndCuUZwP4j0T3QzOIJujsA1tvOpHbpUhp88gf134cblUNE8LcGoFe\n\txIQriT5mLTcmsnaCJ4UmWC0OpZOAUvGEO2cngO4ItcmiSZX3Vnc7vT+YAkjZVPZyaiaq\n\tbLTw==" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id;\n\tbh=DekPruH15onsj0wZEzpWChvul10YADjolb5jSrhjlYM=;\n\tb=ReAL8+X2b4Idg/s5qamzfF4sHgX09F7o9dACw8iNLUz/vbV3tuxcsAkLe7m2h0uuMt\n\t4LKx+gs3wrFHpZn2/QvoSOxg+GIB9q/X7IezoZtT+4+5FyUVpfe+4Aqv2tBIOwbeT7l5\n\tMiT0hkA9iYa9iUBcw1isryFKuYmnNcvA8BUEbfrn1q/1DAzx7fZ+kJ/V2SiXeF5ccY5p\n\tpgJp/ygC4LMNkABeWg3zEf5FKz+0DoQWy+BClGBbtmI5Mxpp6AZ09294laa6eXEHV6bW\n\tuUtccQD5v5sIDXJU70hVPZpkNHB+duciv/N9e/+f9Zkwk/ehn1TGpah65H5sFtpenPdJ\n\t2mew==", "X-Gm-Message-State": "AFeK/H3xR9uxBtGKjJdyREzJO+0SPzAJ/ctNuCQoLwAsBUvaaZrfa4aipX6SeqNNLVEU9g==", "X-Received": "by 10.98.107.194 with SMTP id g185mr32625419pfc.22.1490009987280;\n\tMon, 20 Mar 2017 04:39:47 -0700 (PDT)", "From": "Yousong Zhou <yszhou4tech@gmail.com>", "To": "jo@mein.io", "Date": "Mon, 20 Mar 2017 19:39:48 +0800", "Message-Id": "<1490009989-29321-1-git-send-email-yszhou4tech@gmail.com>", "X-Mailer": "git-send-email 2.6.4", "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ", "X-CRM114-CacheID": "sfid-20170320_044008_761497_D7AC756E ", "X-CRM114-Status": "UNSURE ( 7.33 )", "X-CRM114-Notice": "Please train this message.", "X-Spam-Score": "-2.0 (--)", "X-Spam-Report": "SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details: (-2.0 points)\n\tpts rule name description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno\n\ttrust [2607:f8b0:400e:c00:0:0:0:241 listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS SPF: sender matches SPF record\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (yszhou4tech[at]gmail.com)\n\t-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t0.1 DKIM_SIGNED Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain", "Subject": "[LEDE-DEV] [PATCH opkg-lede 1/2] libbb: xreadlink: fix memory leak\n\ton failure case", "X-BeenThere": "lede-dev@lists.infradead.org", "X-Mailman-Version": "2.1.21", "Precedence": "list", "List-Id": "<lede-dev.lists.infradead.org>", "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/lede-dev>,\n\t<mailto:lede-dev-request@lists.infradead.org?subject=unsubscribe>", "List-Archive": "<http://lists.infradead.org/pipermail/lede-dev/>", "List-Post": "<mailto:lede-dev@lists.infradead.org>", "List-Help": "<mailto:lede-dev-request@lists.infradead.org?subject=help>", "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/lede-dev>,\n\t<mailto:lede-dev-request@lists.infradead.org?subject=subscribe>", "Cc": "Yousong Zhou <yszhou4tech@gmail.com>, lede-dev@lists.infradead.org", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "\"Lede-dev\" <lede-dev-bounces@lists.infradead.org>", "Errors-To": "lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org" }, "content": "Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>\n---\n libbb/xreadlink.c | 1 +\n 1 file changed, 1 insertion(+)", "diff": "diff --git a/libbb/xreadlink.c b/libbb/xreadlink.c\nindex 596a763..29949d1 100644\n--- a/libbb/xreadlink.c\n+++ b/libbb/xreadlink.c\n@@ -25,6 +25,7 @@ extern char *xreadlink(const char *path)\n \t\treadsize = readlink(path, buf, bufsize);\t/* 1st try */\n \t\tif (readsize == -1) {\n \t\t\tperror_msg(\"%s\", path);\n+\t\t\tfree(buf);\n \t\t\treturn NULL;\n \t\t}\n \t}\n", "prefixes": [ "LEDE-DEV", "opkg-lede", "1/2" ] }