Remap needs to free a buffer when it returns from an error state.
From: Erik Hovland <erik@hovland.org>
---
libs/libmythdvdnav/remap.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/libs/libmythdvdnav/remap.c b/libs/libmythdvdnav/remap.c
index e1ece42..c61f314 100644
a
|
b
|
remap_t* remap_loadmap( char *title) { |
221 | 221 | |
222 | 222 | fclose( fp); |
223 | 223 | |
224 | | if (map->nblocks == 0 && map->debug == 0) return NULL; |
| 224 | if (map->nblocks == 0 && map->debug == 0) { |
| 225 | free( map); |
| 226 | return NULL; |
| 227 | } |
| 228 | |
225 | 229 | return map; |
226 | 230 | } |
227 | 231 | |