X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lib%2Flibnfs.c;h=969721e0330909f45e1906afba418d7b9c057c7e;hb=a1287496488a3d04e205cb1999e0639768bf5b95;hp=64f7fe4b23f7ddb8fdd49b28bb511fe2969638e4;hpb=feb2fc2f92950ddefc2ddd6994e38ef8d9f13eb9;p=deb_libnfs.git diff --git a/lib/libnfs.c b/lib/libnfs.c index 64f7fe4..969721e 100644 --- a/lib/libnfs.c +++ b/lib/libnfs.c @@ -2371,6 +2371,7 @@ int nfs_creat_async(struct nfs_context *nfs, const char *path, int mode, nfs_cb ptr = strrchr(new_path, '/'); if (ptr == NULL) { rpc_set_error(nfs->rpc, "Invalid path %s", path); + free(new_path); return -1; } *ptr = 0;