summaryrefslogtreecommitdiffstats
path: root/main/netcf/memleak.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-08-13 15:08:57 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2013-08-13 15:10:04 +0200
commit99a9c68a9e59825e3e46ee24d1403766deb17fb4 (patch)
tree0817824dcbde49b381887c224d45d1f91589b524 /main/netcf/memleak.patch
parent96ced39074490a4f58069ba0fc73593b166969e8 (diff)
downloadaports-99a9c68a9e59825e3e46ee24d1403766deb17fb4.tar.bz2
aports-99a9c68a9e59825e3e46ee24d1403766deb17fb4.tar.xz
main/netcf: fix a memory leak
a big thanks to eblake for help finding/fixing this
Diffstat (limited to 'main/netcf/memleak.patch')
-rw-r--r--main/netcf/memleak.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/main/netcf/memleak.patch b/main/netcf/memleak.patch
new file mode 100644
index 000000000..20cac7d30
--- /dev/null
+++ b/main/netcf/memleak.patch
@@ -0,0 +1,12 @@
+diff --git i/src/drv_debian.c w/src/drv_debian.c
+index d762a5d..370eccd 100644
+--- i/src/drv_debian.c
++++ w/src/drv_debian.c
+@@ -145,6 +145,7 @@ static int interface_deps(struct netcf *ncf, char ***slaves, const char *fmt, ..
+ }
+
+ nmatches = aug_match(aug, path, &matches);
++ FREE(path);
+ ERR_COND_BAIL(nmatches < 0, ncf, EOTHER);
+
+ if (!nmatches)