diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2019-10-26 21:20:03 -0400 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-10-26 19:17:53 -0700 |
commit | 7b45b930806b78a33eba3bc9f48496d64a2faf00 (patch) | |
tree | 7a6ec19714c576958e1500396b30e4c816ccbdad | |
parent | c9a39bb08e036c5e18d112dec2abeef1dd889c2c (diff) | |
download | subsurface-7b45b930806b78a33eba3bc9f48496d64a2faf00.tar.gz |
Cleanup: fix obvious resource leak
Found by Coverity. Fixes CID 350084
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | core/trip.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |