Skip to content

Commit d6006ce

Browse files
committed
Supress a coverity false positive
The variable substrs is not allocated if want_substrs is false.
1 parent b1bf58f commit d6006ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/OVAL/probes/independent/textfilecontent54.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ static int process_file(const char *prefix, const char *path, const char *file,
354354
free(whole_path);
355355
free(whole_path_with_prefix);
356356

357+
/* coverity[leaked_storage] - substrs is not leaked */
357358
return ret;
358359
}
359360

0 commit comments

Comments
 (0)