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 0b074673e8ef02afbdd4cae0c14b90617d4a1b27..af1907992f3ffdc6f588c92975935dab83d0ce4d 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;
 }