Skip to content

Commit

Permalink
Use of pclose when popen finish
Browse files Browse the repository at this point in the history
  • Loading branch information
eugpermar committed Jan 9, 2018
1 parent ec4b2bd commit b8d9303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/poller/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ struct monitor_value *system_solve_response(const char *command, void *unused) {
}

monitor_value *ret = new_monitor_value_fstream(command_stream);
fclose(command_stream);
pclose(command_stream);
return ret;
}

0 comments on commit b8d9303

Please sign in to comment.