Skip to content
Snippets Groups Projects
Commit c0bb8d04 authored by malahal naineni's avatar malahal naineni Committed by J. Bruce Fields
Browse files

nfs4-acl-tools: Don't call free_fields when memory isn't allocated.

parent d92f7f02
No related branches found
No related tags found
No related merge requests found
......@@ -150,7 +150,7 @@ struct nfs4_ace * nfs4_ace_from_string(char *ace_buf, int is_dir)
/* parse_alloc_fields had split up ace_buf so now we copy it to bufp */
bufp = malloc(strlen(ace_buf) + 1);
if (!bufp)
goto out_free;
goto out;
strcpy(bufp,ace_buf);
ret = parse_alloc_fields(bufp, fields);
......
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