From: Benoit Fouet <benoit.fouet@purplelabs.com>
To: alsa-devel@alsa-project.org
Subject: missing snd_dlclose in timer.c
Date: Tue, 25 Apr 2006 11:03:28 +0200 [thread overview]
Message-ID: <444DE5E0.9030200@purplelabs.com> (raw)
Hi,
I worked on an ARM9E platform with not much memory. We had to
dynamically link the libraries we needed.
BTW I found out that there was a dlclose missing in ALSA lib in the
snd_timer_open_conf function.
Find below the diff of my file, if you want to add it in th hg repository.
Cheers,
Ben
diff -r 211e55692b5d src/timer/timer.c
--- a/src/timer/timer.c Wed Apr 19 12:29:47 2006 +0200
+++ b/src/timer/timer.c Tue Apr 25 10:53:04 2006 +0200
@@ -171,7 +171,10 @@ static int snd_timer_open_conf(snd_timer
_err:
if (type_conf)
snd_config_delete(type_conf);
- return err >= 0 ? open_func(timer, name, timer_root, timer_conf,
mode) : err;
+ err = err >= 0 ? open_func(timer, name, timer_root, timer_conf,
mode) : err;
+ if (h)
+ snd_dlclose(h);
+ return err;
}
static int snd_timer_open_noupdate(snd_timer_t **timer, snd_config_t
*root, const char *name, int mode)
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
next reply other threads:[~2006-04-25 9:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-25 9:03 Benoit Fouet [this message]
2006-04-25 13:27 ` missing snd_dlclose in timer.c Takashi Iwai
2006-04-25 14:30 ` Benoit Fouet
2006-04-25 14:41 ` Takashi Iwai
2006-04-25 15:22 ` Benoit Fouet
2006-04-25 16:10 ` Takashi Iwai
2006-04-25 16:29 ` Benoit Fouet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=444DE5E0.9030200@purplelabs.com \
--to=benoit.fouet@purplelabs.com \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.