projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change malloc to zmalloc for libust
[ust.git]
/
libust
/
marker.c
diff --git
a/libust/marker.c
b/libust/marker.c
index 19467d19bba9272bc3af2d1e37507d25f2505685..3351726aaa17954e2dcbb4169836032c4c326060 100644
(file)
--- a/
libust/marker.c
+++ b/
libust/marker.c
@@
-428,10
+428,10
@@
static struct marker_entry *add_marker(const char *channel, const char *name,
}
}
/*
}
}
/*
- * Using malloc here to allocate a variable length element. Could
+ * Using
z
malloc here to allocate a variable length element. Could
* cause some memory fragmentation if overused.
*/
* cause some memory fragmentation if overused.
*/
- e = malloc(sizeof(struct marker_entry)
+ e =
z
malloc(sizeof(struct marker_entry)
+ channel_len + name_len + format_len);
if (!e)
return ERR_PTR(-ENOMEM);
+ channel_len + name_len + format_len);
if (!e)
return ERR_PTR(-ENOMEM);
@@
-1363,7
+1363,7
@@
int marker_register_lib(struct marker *markers_start, int markers_count)
{
struct lib *pl;
{
struct lib *pl;
- pl = (struct lib *) malloc(sizeof(struct lib));
+ pl = (struct lib *)
z
malloc(sizeof(struct lib));
pl->markers_start = markers_start;
pl->markers_count = markers_count;
pl->markers_start = markers_start;
pl->markers_count = markers_count;
This page took
0.03098 seconds
and
4
git commands to generate.