From: Mathieu Desnoyers Date: Thu, 29 Sep 2011 21:17:05 +0000 (-0400) Subject: call_rcu: fix error handling of malloc error X-Git-Tag: v0.6.5~2 X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=commitdiff_plain;h=d31150b44042083fa11edcdc788b0c60d71367a7 call_rcu: fix error handling of malloc error Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu-call-rcu-impl.h b/urcu-call-rcu-impl.h index d09adb1..29c4e28 100644 --- a/urcu-call-rcu-impl.h +++ b/urcu-call-rcu-impl.h @@ -669,6 +669,7 @@ void free_all_cpu_call_rcu_data(void) fprintf(stderr, "[error] liburcu: unable to allocate per-CPU pointer array\n"); } warned = 1; + return; } for (cpu = 0; cpu < maxcpus; cpu++) {