mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
tmpdirs: fix typo in variable name
On mkdtemp error, free tmppath and not tmpdir (which is CLEANUP_FREE).
Fixes commit 673a7a959c.
This commit is contained in:
@@ -157,7 +157,7 @@ lazy_make_tmpdir (guestfs_h *g, char *(*getdir) (guestfs_h *g), char **dest)
|
||||
char *tmppath = safe_asprintf (g, "%s/libguestfsXXXXXX", tmpdir);
|
||||
if (mkdtemp (tmppath) == NULL) {
|
||||
perrorf (g, _("%s: cannot create temporary directory"), tmppath);
|
||||
free (tmpdir);
|
||||
free (tmppath);
|
||||
return -1;
|
||||
}
|
||||
/* Allow qemu (which may be running as qemu.qemu) to read in this
|
||||
|
||||
Reference in New Issue
Block a user