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:
Lubomir I. Ivanov 2012-12-28 15:43:03 +02:00 committed by Dirk Hohndel
parent 8bce372eb1
commit 596b13e310

View file

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