projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: don't keep vpid, procname, nor patchlevel environment for per-uid buffers
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
session.c
diff --git
a/src/bin/lttng-sessiond/session.c
b/src/bin/lttng-sessiond/session.c
index 65e3145a5fd63bae374117a25e25261300eaec91..076d2cbc46ea9243dbe636350d01592e6d40a880 100644
(file)
--- a/
src/bin/lttng-sessiond/session.c
+++ b/
src/bin/lttng-sessiond/session.c
@@
-199,11
+199,6
@@
int session_create(char *name, char *path, uid_t uid, gid_t gid)
ret = LTTNG_ERR_FATAL;
goto error_asprintf;
}
ret = LTTNG_ERR_FATAL;
goto error_asprintf;
}
- new_session->start_consumer = 1;
- } else {
- /* No path indicates that there is no use for a consumer. */
- new_session->start_consumer = 0;
- new_session->path[0] = '\0';
}
/* Init kernel session */
}
/* Init kernel session */
@@
-246,9
+241,7
@@
int session_create(char *name, char *path, uid_t uid, gid_t gid)
error:
error_asprintf:
error:
error_asprintf:
- if (new_session != NULL) {
- free(new_session);
- }
+ free(new_session);
error_malloc:
return ret;
error_malloc:
return ret;
This page took
0.026184 seconds
and
4
git commands to generate.