Skip to content
Snippets Groups Projects
Commit 8ef7c117 authored by David M. Richter's avatar David M. Richter
Browse files

Free the pathlist at the end to quieten valgrind.

parent 3165a839
No related branches found
No related tags found
No related merge requests found
......@@ -128,7 +128,7 @@ int main(int argc, char **argv)
{
int opt, err = 1;
int numpaths = 0, curpath = 0;
char *tmp, **paths, *path = NULL, *spec_file = NULL;
char *tmp, **paths = NULL, *path = NULL, *spec_file = NULL;
FILE *s_fp = NULL;
if (!strcmp(basename(argv[0]), "nfs4_editfacl")) {
......@@ -322,6 +322,8 @@ int main(int argc, char **argv)
free(tmp);
}
out:
if (paths)
free(paths);
return err;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment