diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2012-12-28 15:43:03 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-12-28 08:59:42 -0800 |
commit | 596b13e3108e7ac99ae438fda639543179e5f05f (patch) | |
tree | ab8d21ce3a78dc5e67b637ff888d5460c89e4b32 /divelist.c | |
parent | 8bce372eb1b0f6aa5c6a69c552a13845973ea694 (diff) | |
download | subsurface-596b13e3108e7ac99ae438fda639543179e5f05f.tar.gz |
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>
Diffstat (limited to 'divelist.c')
-rw-r--r-- | divelist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/divelist.c b/divelist.c index bd610ac0a..bb940330c 100644 --- a/divelist.c +++ b/divelist.c @@ -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); } |