tracepoint.c: Add coverity alloc/free annotations
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 15 May 2013 05:41:57 +0000 (07:41 +0200)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 15 May 2013 05:41:57 +0000 (07:41 +0200)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/tracepoint.c

index 013f9b2a6091a69e4e07f8d9365ac695c39cc84f..7bb38fa9ec307f9b1eb85670c7b90a456e9bce3d 100644 (file)
@@ -122,6 +122,7 @@ struct callsite_entry {
        struct tracepoint *tp;
 };
 
+/* coverity[+alloc] */
 static void *allocate_probes(int count)
 {
        struct tp_probes *p  = zmalloc(count * sizeof(struct tracepoint_probe)
@@ -129,6 +130,7 @@ static void *allocate_probes(int count)
        return p == NULL ? NULL : p->probes;
 }
 
+/* coverity[+free : arg-0] */
 static void release_probes(void *old)
 {
        if (old) {
This page took 0.025336 seconds and 4 git commands to generate.