aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/core/wheel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/core/wheel.c b/src/lib/core/wheel.c
index 641d50a..91b1761 100644
--- a/src/lib/core/wheel.c
+++ b/src/lib/core/wheel.c
@@ -994,6 +994,9 @@ void wheel_metadata_free(struct WheelMetadata *meta) {
}
void wheel_package_free(struct Wheel **pkg) {
+ if (!*pkg) {
+ return;
+ }
guard_free((*pkg)->wheel_version);
guard_free((*pkg)->generator);
guard_free((*pkg)->root_is_pure_lib);