libsupport: fix potential resource leaks in the profile code

These were found by Coverity.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
1 file changed