Skip to content

Commit

Permalink
Merge pull request #108 from marcpayne/noipv6-segfault-fix
Browse files Browse the repository at this point in the history
Close file only if it was successfully opened
  • Loading branch information
brndnmtthws committed Jul 7, 2015
2 parents 2c0ef7f + ee08a9e commit 9ac60dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -643,8 +643,8 @@ int update_net_stats(void)
}
lastv6->next = NULL;
}
fclose(file);
}
fclose(file);
#endif /* BUILD_IPV6 */

first = 0;
Expand Down

0 comments on commit 9ac60dc

Please sign in to comment.