Skip to content

Commit e8850f6

Browse files
committed
Plug little leak from reused variable
1 parent ce32184 commit e8850f6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/mbpfan.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ t_sensors *retrieve_sensors()
171171

172172
if (errno == EISDIR) {
173173

174+
free(path_begin);
174175
path_begin = smprintf("%s/temp", hwmon_path);
175176

176177
if(verbose) {

0 commit comments

Comments
 (0)