Skip to content

Commit 1509a1b

Browse files
committed
Add missing "free()" to prevent memory leaks in fsdev.c
1 parent 3341b53 commit 1509a1b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/OVAL/probes/fsdev.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ fsdev_t *fsdev_strinit(const char *fs_names)
408408
e = errno;
409409
free(fs_arr);
410410
errno = e;
411+
free(pstr);
411412

412413
return (lfs);
413414
}

0 commit comments

Comments
 (0)