From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Brad Medeiros Newsgroups: gmane.lisp.guile.user Subject: Deleting a Module Date: Mon, 11 Oct 2021 00:25:14 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19654"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Mon Oct 11 09:26:20 2021 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mZphU-00051U-8H for guile-user@m.gmane-mx.org; Mon, 11 Oct 2021 09:26:20 +0200 Original-Received: from localhost ([::1]:44722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZphS-0000pD-M7 for guile-user@m.gmane-mx.org; Mon, 11 Oct 2021 03:26:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38642) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZpgd-0000op-VD for guile-user@gnu.org; Mon, 11 Oct 2021 03:25:28 -0400 Original-Received: from mail-vs1-xe2f.google.com ([2607:f8b0:4864:20::e2f]:42625) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mZpgc-0008OY-Cg for guile-user@gnu.org; Mon, 11 Oct 2021 03:25:27 -0400 Original-Received: by mail-vs1-xe2f.google.com with SMTP id y19so453888vsm.9 for ; Mon, 11 Oct 2021 00:25:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=alOCwKJttbnutvgIbS36hQqF6V0i4HmgKVOhWl93DxU=; b=VQQD8wozbW9wTAcQA97VN/sZofomNKJ+ArYh44or3Z/yY8lR0IonbVNJNrHkbyifEE c9hPZe9LARHASAyw4233scY6RxsaJdAzlYpBi4W2dsCUwmdZMw2CXt5mdx6pF0FOwHkB +SHXSAmENAqiqnYzhzFebwGb0nFL7YxasS+l+Ia3pws9CQQ51+5ds+TPwzzBTD3O6kEk trJJWMI3VNF8b15xuqCv64eAYiI8HDhhhOfTSq05ORgw3bBTMtAxdNCGBNLmQzhAJcai m81IbBbMpjY1E8NmB79k9vpViyckkc3QiDPKoRTebfvs4aI0eHQ62PHkDLuYLxqWvP43 irDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=alOCwKJttbnutvgIbS36hQqF6V0i4HmgKVOhWl93DxU=; b=lFet48Kdsw+5weJ7caWOQ4JL+XSkDvsig1BT0LJ/Ge6Uc5LAhWSKvjZm0SNhI9Kdi3 OqUzJCaAuvfWRfRbfJ6drirSbWJhSGFq1Ms1fvtanBiMIfc4ORj1pBFw4Jk/yAfbTbM3 5AkN2L2hQDp1CbJlbFzAUv7ptbg4sFEX2i6OjjAqTxTHu/WXr9+4J5YrMbBd/RXQK4e6 O/5yo7Kp5afVhhooRH3v2ySodNDdOqp8Bo8yHFBmjRnv/SGeDHqYOVQKosmAYMkFwPvD aZzcaxlog0zlbkqqFHw9gob4jalVTBJWwIYeIeQfXmfMhb7a1kiFPZvcJO0gIc1Ychao 2AqQ== X-Gm-Message-State: AOAM532TRv5FGrNlE/+Mqm0DqNmGHYOW3y7t5HV6KaF40VgYyDcyxC1C yV7ywTBz2KWWgLLykpvmZWxB8epKu39gvT23bM0TOIsMDSY= X-Google-Smtp-Source: ABdhPJwJTNYKfXqzjX3tCztQCk2+TGmVNpG+6GrE5WY2CmhxFa9BnJKUF1imRuWr0WMKsD/unK6OiYPfPIbvAJY84UU= X-Received: by 2002:a67:e192:: with SMTP id e18mr21920088vsl.26.1633937124640; Mon, 11 Oct 2021 00:25:24 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::e2f; envelope-from=bradmedeiros0@gmail.com; helo=mail-vs1-xe2f.google.com X-Spam_score_int: 1 X-Spam_score: 0.1 X-Spam_bar: / X-Spam_report: (0.1 / 5.0 requ) BAYES_40=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:17807 Archived-At: Hi Everyone! I currently use guile's module system for a scripting plugin style system, where these plugins should get loaded and unloaded fairly often. After profiling my code, I realize that I'm leaking memory, and I'm pretty sure it's because the modules I've created never get cleaned up. I create the modules with scm_c_define_module, but is there functionality that can be used as the equivalent of what would be a corresponding scm_c_undefine_module, or even something like a reload that I could use to create a pool of modules to reuse? Thanks!