From 7095ba510cffd59a1c8c5174e155a5c49ac528f1 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 22 Mar 2024 17:27:12 -0400 Subject: Return on error immediately to avoid an invalid read --- src/deliverable.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/deliverable.c') diff --git a/src/deliverable.c b/src/deliverable.c index c424033..8f37b28 100644 --- a/src/deliverable.c +++ b/src/deliverable.c @@ -866,7 +866,6 @@ struct StrList *delivery_build_wheels(struct Delivery *ctx) { result = strlist_init(); if (!result) { perror("unable to allocate memory for string list"); - result = NULL; return NULL; } -- cgit