From: Nils Carlson Date: Tue, 30 Nov 2010 13:36:30 +0000 (+0100) Subject: Fix freeing of channels and buffers in buffers.c v2 X-Git-Tag: v1.9.1~501 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=ef15e552c145311c21bb89a1f5e9c6c040e1737f;hp=ef15e552c145311c21bb89a1f5e9c6c040e1737f;p=lttng-ust.git Fix freeing of channels and buffers in buffers.c v2 Changes since v1: Handle new naming conventions buffers.c appeared to be very convoluted full of krefs and in general very bad shape. I have tried to make the freeing and unmapping of shared memory symmetrical in the sense that every open has a corresponding close and every map has a corresponding unmap. I have removed all use of krefs. Assuming no concurrency this should be fine. The kref usage was anyway broken. Signed-off-by: Nils Carlson ---