summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--send-utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/send-utils.c b/send-utils.c
index a85fa084..5026882a 100644
--- a/send-utils.c
+++ b/send-utils.c
@@ -486,6 +486,10 @@ struct subvol_info *subvol_uuid_search(struct subvol_uuid_search *s,
info->path = strdup(path);
} else {
info->path = malloc(PATH_MAX);
+ if (!info->path) {
+ ret = -ENOMEM;
+ goto out;
+ }
ret = btrfs_subvolid_resolve(s->mnt_fd, info->path,
PATH_MAX, root_id);
}