acer-wmi: Only update rfkill status for associated hotkey events
[pandora-kernel.git] / security / tomoyo / memory.c
index 2976126..42a7b1b 100644 (file)
@@ -75,6 +75,7 @@ void *tomoyo_commit_ok(void *data, const unsigned int size)
                memset(data, 0, size);
                return ptr;
        }
+       kfree(ptr);
        return NULL;
 }