From 7b45b930806b78a33eba3bc9f48496d64a2faf00 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 26 Oct 2019 21:20:03 -0400 Subject: Cleanup: fix obvious resource leak Found by Coverity. Fixes CID 350084 Signed-off-by: Dirk Hohndel --- core/trip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/trip.c') diff --git a/core/trip.c b/core/trip.c index c4534fe27..58e224f5b 100644 --- a/core/trip.c +++ b/core/trip.c @@ -149,7 +149,7 @@ dive_trip_t *create_trip_from_dive(struct dive *dive) dive_trip_t *create_and_hookup_trip_from_dive(struct dive *dive, struct trip_table *trip_table_arg) { - dive_trip_t *dive_trip = alloc_trip(); + dive_trip_t *dive_trip; dive_trip = create_trip_from_dive(dive); -- cgit v1.2.3-70-g09d2