Free trip notes memory when deleting a trip
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8bce372eb1
commit
596b13e310
@ -1083,6 +1083,8 @@ static void delete_trip(dive_trip_t *trip)
|
||||
/* .. and free it */
|
||||
if (trip->location)
|
||||
free(trip->location);
|
||||
if (trip->notes)
|
||||
free(trip->notes);
|
||||
free(trip);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user