fix a memleak in broadcom-diag (#1780)
authorFelix Fietkau <nbd@openwrt.org>
Wed, 20 Jun 2007 21:52:55 +0000 (21:52 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 20 Jun 2007 21:52:55 +0000 (21:52 +0000)
SVN-Revision: 7683

package/broadcom-diag/src/diag.c

index 0b07467..af19079 100644 (file)
@@ -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;
 }