mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-17 21:46:17 +00:00
Cleanup: fix obvious resource leak
Found by Coverity. Fixes CID 350084 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c9a39bb08e
commit
7b45b93080
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue