dvr: dvr_inotify_add() - add missing free - coverity
This commit is contained in:
parent
c72cadbd5d
commit
a64f9a5ad3
1 changed files with 3 additions and 1 deletions
|
@ -106,8 +106,10 @@ void dvr_inotify_add ( dvr_entry_t *de )
|
|||
SKEL_ALLOC(dvr_inotify_entry_skel);
|
||||
dvr_inotify_entry_skel->path = dirname(path);
|
||||
|
||||
if (stat(dvr_inotify_entry_skel->path, &st))
|
||||
if (stat(dvr_inotify_entry_skel->path, &st)) {
|
||||
free(path);
|
||||
return;
|
||||
}
|
||||
|
||||
e = RB_INSERT_SORTED(&_inot_tree, dvr_inotify_entry_skel, link, _str_cmp);
|
||||
if (!e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue