Browse Source

fix memory leak in switch drivers (patch from #1132)

SVN-Revision: 6011
Felix Fietkau 19 years ago
parent
commit
dd03b56357
1 changed files with 1 additions and 0 deletions
  1. 1 0
      package/switch/src/switch-core.c

+ 1 - 0
package/switch/src/switch-core.c

@@ -100,6 +100,7 @@ static ssize_t switch_proc_read(struct file *file, char *buf, size_t count, loff
 		len = 0;
 	}
 
+	kfree(page);
 	return len;
 }