From patchwork Mon Apr 12 20:53:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 12198801 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B71EC433B4 for ; Mon, 12 Apr 2021 20:53:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EAA6861352 for ; Mon, 12 Apr 2021 20:53:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230049AbhDLUx4 (ORCPT ); Mon, 12 Apr 2021 16:53:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:51684 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229802AbhDLUx4 (ORCPT ); Mon, 12 Apr 2021 16:53:56 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 00CB36121F for ; Mon, 12 Apr 2021 20:53:37 +0000 (UTC) Date: Mon, 12 Apr 2021 16:53:36 -0400 From: Steven Rostedt To: Linux Trace Devel Subject: [PATCH] libtracefs: Have tracefs_instance_destroy() match the man page Message-ID: <20210412165336.37d46e05@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-trace-devel@vger.kernel.org From: "Steven Rostedt (VMware)" According to the man page of tracefs_instance_destroy(): "The tracefs_instance_destroy() frees the instance structure, and will also remove the trace instance from the system." But, it does not actually free the instance. Have it do so. Signed-off-by: Steven Rostedt (VMware) --- src/tracefs-instance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tracefs-instance.c b/src/tracefs-instance.c index b8ce36f..67e7991 100644 --- a/src/tracefs-instance.c +++ b/src/tracefs-instance.c @@ -247,7 +247,7 @@ int tracefs_instance_destroy(struct tracefs_instance *instance) if (path) ret = rmdir(path); tracefs_put_tracing_file(path); - + tracefs_instance_free(instance); return ret; }