[PATCH] alsa-card: Don't free the modargs in pa_init.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The modargs are in both cases (a succesfull as well as a failed module
initialization) freed already in pa_done().
---
 src/modules/alsa/module-alsa-card.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/modules/alsa/module-alsa-card.c b/src/modules/alsa/module-alsa-card.c
index 1a823d7..b7bceed 100644
--- a/src/modules/alsa/module-alsa-card.c
+++ b/src/modules/alsa/module-alsa-card.c
@@ -768,17 +768,12 @@ int pa__init(pa_module *m) {
                     "is abused (i.e. fixes are not pushed to ALSA), the decibel fix feature may be removed in some future "
                     "PulseAudio version.", u->card->name);
 
-    pa_modargs_free(ma);
-
     return 0;
 
 fail:
     if (reserve)
         pa_reserve_wrapper_unref(reserve);
 
-    if (ma)
-        pa_modargs_free(ma);
-
     pa__done(m);
 
     return -1;
-- 
1.8.5.2



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux