diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-10-24 14:05:17 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-10-24 14:05:17 +0800 |
commit | a2d0866fc8a366700d256f0f8ae8075956057fe4 (patch) | |
tree | d7babd849b98d8bd157e5be075c344e963f6d31a /discover/file.c | |
parent | 4d03d190a0e5a0d09b064c5016f576a2e7f9c483 (diff) | |
download | talos-petitboot-a2d0866fc8a366700d256f0f8ae8075956057fe4.tar.gz talos-petitboot-a2d0866fc8a366700d256f0f8ae8075956057fe4.zip |
discover/file: Fix invalid free in replace_file
We talloced tempfile, we should be freeing with talloc_free.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/file.c')
-rw-r--r-- | discover/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/file.c b/discover/file.c index 4bad012..1bde9fb 100644 --- a/discover/file.c +++ b/discover/file.c @@ -114,7 +114,7 @@ int replace_file(const char *filename, char *buf, int len) rc = rename(tempfile, filename); } - free(tempfile); + talloc_free(tempfile); fchmod(fd, 0644); |