SHA256
1
0
forked from pool/iproute2
iproute2/iproute2-2.6.29-1-memleak.diff
OBS User autobuild 298fb7c2f4 Accepting request 20502 from network:utilities
Copy from network:utilities/iproute2 based on submit request 20502 from user sax2

OBS-URL: https://build.opensuse.org/request/show/20502
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/iproute2?expand=0&rev=23
2009-09-16 20:54:22 +00:00

12 lines
326 B
Diff

--- ip/ipmaddr.c 2009-09-16 11:21:21.000000000 +0200
+++ ip/ipmaddr.c 2009-09-16 11:23:14.000000000 +0200
@@ -136,7 +136,7 @@
m.addr.bytelen = 4;
while (fgets(buf, sizeof(buf), fp)) {
- struct ma_info *ma = malloc(sizeof(m));
+ struct ma_info *ma;
if (buf[0] != '\t') {
sscanf(buf, "%d%s", &m.index, m.name);