Cleanup: fix obvious resource leak

Found by Coverity. Fixes CID 350084

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2019-10-26 21:20:03 -04:00
parent c9a39bb08e
commit 7b45b93080

View file

@ -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);