diff options
author | Kamil Rytarowski <n54@gmx.com> | 2013-05-11 14:54:38 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2013-05-28 14:36:37 +0200 |
commit | e0904b27ff821c067ae62c227db8fef45638a827 (patch) | |
tree | 0fc2f18bcad3c93b655c320d3fec6e7838f7e81b /install | |
parent | d9eff33ce203a9010067a15ddf1d279132abf437 (diff) | |
download | dracut-e0904b27ff821c067ae62c227db8fef45638a827.tar.gz dracut-e0904b27ff821c067ae62c227db8fef45638a827.tar.bz2 dracut-e0904b27ff821c067ae62c227db8fef45638a827.zip |
Fix memory leak
Diffstat (limited to 'install')
-rw-r--r-- | install/dracut-install.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/install/dracut-install.c b/install/dracut-install.c index c8328b06..a1c64619 100644 --- a/install/dracut-install.c +++ b/install/dracut-install.c @@ -258,7 +258,7 @@ static int resolve_deps(const char *src) { int ret = 0; - char *buf = malloc(LINE_MAX); + _cleanup_free_ char *buf = malloc(LINE_MAX); size_t linesize = LINE_MAX; _cleanup_pclose_ FILE *fptr = NULL; _cleanup_free_ char *cmd = NULL; |