X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=libust%2Ftracectl.c;h=e64b26f7cf85dc6ad2718d508f0e95d2cd226c8d;hb=1dba3e6c054da18f238d051da5b1839bd5e4e4dd;hp=8d57b8fe9324be657629fd3994668437fc86d1dd;hpb=245d371ea1c17d6196af065a40dfcdc671b40f41;p=ust.git diff --git a/libust/tracectl.c b/libust/tracectl.c index 8d57b8f..e64b26f 100644 --- a/libust/tracectl.c +++ b/libust/tracectl.c @@ -675,9 +675,9 @@ static int do_cmd_get_subbuffer(const char *recvbuf, struct ustcomm_source *src) found = 1; - bc = (struct blocked_consumer *) malloc(sizeof(struct blocked_consumer)); + bc = (struct blocked_consumer *) zmalloc(sizeof(struct blocked_consumer)); if(bc == NULL) { - ERR("malloc returned NULL"); + ERR("zmalloc returned NULL"); goto unlock_traces; } bc->fd_consumer = src->fd;