Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350008
b: refs/heads/master
c: 5809fde
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Jarosch authored and Arnaldo Carvalho de Melo committed Jan 30, 2013
1 parent 2a13d54 commit 30c1944
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fdae6373910c10e27b8ae07e11e821b183d0bba5
refs/heads/master: 5809fde040de2afa477a6c593ce2e8fd2c11d9d3
4 changes: 3 additions & 1 deletion trunk/tools/perf/util/header.c
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,7 @@ static int write_topo_node(int fd, int node)
}

fclose(fp);
fp = NULL;

ret = do_write(fd, &mem_total, sizeof(u64));
if (ret)
Expand All @@ -981,7 +982,8 @@ static int write_topo_node(int fd, int node)
ret = do_write_string(fd, buf);
done:
free(buf);
fclose(fp);
if (fp)
fclose(fp);
return ret;
}

Expand Down

0 comments on commit 30c1944

Please sign in to comment.