dvr cutpoints: fix memory leak (coverity)
This commit is contained in:
parent
7f732d1b8a
commit
871ad60b54
1 changed files with 3 additions and 1 deletions
|
@ -228,8 +228,10 @@ dvr_get_cutpoint_list (dvr_entry_t *de)
|
|||
path = alloca(strlen(de->de_filename) + 3);
|
||||
strcpy(path, de->de_filename);
|
||||
sptr = strrchr(path, '.');
|
||||
if (!sptr)
|
||||
if (!sptr) {
|
||||
free(cuts);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Check each parser */
|
||||
for (i = 0; i < ARRAY_SIZE(dvr_cutpoint_parsers); i++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue