summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-06-20 21:52:55 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-06-20 21:52:55 +0000
commit37d063a852a3425457079fa30aab5bd6c760f383 (patch)
treee6445949252fbe1a96231750575c12b1f37c66d7
parent7f44b2ab9edfa8916054321d8432c367c3ce727b (diff)
fix a memleak in broadcom-diag (#1780)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7683 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/broadcom-diag/src/diag.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c
index 0b074673e..af1907992 100644
--- a/package/broadcom-diag/src/diag.c
+++ b/package/broadcom-diag/src/diag.c
@@ -912,6 +912,7 @@ static ssize_t diag_proc_read(struct file *file, char *buf, size_t count, loff_t
len = 0;
}
+ kfree(page);
return len;
}