projects
/
lttngtop.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add project status to readme
[lttngtop.git]
/
src
/
iostreamtop.c
diff --git
a/src/iostreamtop.c
b/src/iostreamtop.c
index e0df4ba2292e6f6f3c1b0dceddc16ba496c4f3ef..44fe37b89995aadc722ca5786d3f859a5830b4e8 100644
(file)
--- a/
src/iostreamtop.c
+++ b/
src/iostreamtop.c
@@
-124,7
+124,7
@@
void insert_file(struct processtop *proc, int fd)
if (parent) {
tmp_parent = g_ptr_array_index(
parent->process_files_table, fd);
if (parent) {
tmp_parent = g_ptr_array_index(
parent->process_files_table, fd);
- if (tmp_parent && tmp->name &&
+ if (tmp_parent && tmp->name &&
tmp_parent->name &&
(strcmp(tmp->name, tmp_parent->name)) != 0)
tmp->name = strdup(tmp_parent->name);
}
(strcmp(tmp->name, tmp_parent->name)) != 0)
tmp->name = strdup(tmp_parent->name);
}
@@
-140,10
+140,12
@@
void close_file(struct processtop *proc, int fd)
if (file != NULL) {
file->flag = __NR_close;
lttngtop.nbfiles--;
if (file != NULL) {
file->flag = __NR_close;
lttngtop.nbfiles--;
+ /*
if (file->name) {
free(file->name);
file->name = NULL;
}
if (file->name) {
free(file->name);
file->name = NULL;
}
+ */
}
lttngtop.nbclosedfiles++;
}
}
lttngtop.nbclosedfiles++;
}
This page took
0.023825 seconds
and
4
git commands to generate.