From: Mathieu Desnoyers Date: Wed, 15 May 2013 05:41:57 +0000 (+0200) Subject: tracepoint.c: Add coverity alloc/free annotations X-Git-Tag: v2.2.0-rc3~18 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5e6df7eabfed640cc83d227ae8bed3de75a56694;p=lttng-ust.git tracepoint.c: Add coverity alloc/free annotations Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust/tracepoint.c b/liblttng-ust/tracepoint.c index 013f9b2a..7bb38fa9 100644 --- a/liblttng-ust/tracepoint.c +++ b/liblttng-ust/tracepoint.c @@ -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) {