Fix a zmalloc bug
[ust.git] / libust / tracepoint.c
index 2b33d84428ef29557d7897788c6aa816c7076545..6fe9cd7569444a79895d0fe7133e8a27c8e1ed4c 100644 (file)
@@ -74,7 +74,7 @@ struct tp_probes {
 
 static inline void *allocate_probes(int count)
 {
-       struct tp_probes *p  = zmalloc(count * sizeof(void *)
+       struct tp_probes *p  = zmalloc(count * sizeof(struct probe)
                        + sizeof(struct tp_probes));
        return p == NULL ? NULL : p->probes;
 }
This page took 0.022513 seconds and 4 git commands to generate.