mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
Fix memory leak in ztest
Coverity found this. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Neal Gompa <ngompa@datto.com> Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Closes #13863
This commit is contained in:
parent
d5d10f2aef
commit
8fdc229a9c
@ -7966,6 +7966,7 @@ exec_child(char *cmd, char *libpath, boolean_t ignorekill, int *statusp)
|
|||||||
VERIFY3S(-1, !=,
|
VERIFY3S(-1, !=,
|
||||||
asprintf(&newlp, "%s:%s", libpath, curlp));
|
asprintf(&newlp, "%s:%s", libpath, curlp));
|
||||||
VERIFY0(setenv("LD_LIBRARY_PATH", newlp, 1));
|
VERIFY0(setenv("LD_LIBRARY_PATH", newlp, 1));
|
||||||
|
free(newlp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
(void) execl(cmd, cmd, (char *)NULL);
|
(void) execl(cmd, cmd, (char *)NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user