aports/main/netcf/memleak.patch
Natanael Copa 99a9c68a9e main/netcf: fix a memory leak
a big thanks to eblake for help finding/fixing this
2013-08-13 15:10:04 +02:00

13 lines
379 B
Diff

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)