Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dvr: dvr_inotify_add() - add missing free - coverity
  • Loading branch information
perexg committed Oct 3, 2014
1 parent c72cadb commit a64f9a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dvr/dvr_inotify.c
Expand Up @@ -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) {
Expand Down

0 comments on commit a64f9a5

Please sign in to comment.