libafscp: Fix leak when afscp_ResolvPath errors
[openafs.git] / src / libafscp / afscp_dir.c
index 852a59f..ff05387 100644 (file)
@@ -713,6 +713,7 @@ afscp_ResolvePath(const char *path)
     }
     cell = afscp_DefaultCell();
     if (cell == NULL) {
+       free(p);
        afscp_errno = EINVAL;
        return NULL;
     }