Update of /cvsroot/audacity/lib-src/portaudio-v19/src/hostapi/jack
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv16472
Modified Files:
pa_jack.c
Log Message:
Correct use of memory after free.
Index: pa_jack.c
===================================================================
RCS file: /cvsroot/audacity/lib-src/portaudio-v19/src/hostapi/jack/pa_jack.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- pa_jack.c 23 Sep 2006 18:42:50 -0000 1.2
+++ pa_jack.c 29 Sep 2006 00:09:54 -0000 1.3
@@ -466,12 +466,12 @@
const char **jack_ports = NULL;
char **client_names = NULL;
- char *regex_pattern = MALLOC( jack_client_name_size() + 3 );
+ char *regex_pattern = NULL;
int port_index, client_index, i;
double globalSampleRate;
regex_t port_regex;
unsigned long numClients = 0, numPorts = 0;
- char *tmp_client_name = MALLOC( jack_client_name_size() );
+ char *tmp_client_name = NULL;
commonApi->info.defaultInputDevice = paNoDevice;
commonApi->info.defaultOutputDevice = paNoDevice;
@@ -484,6 +484,9 @@
* associated with the previous list */
PaUtil_FreeAllAllocations( jackApi->deviceInfoMemory );
+ regex_pattern = MALLOC( jack_client_name_size() + 3 );
+ tmp_client_name = MALLOC( jack_client_name_size() );
+
/* We can only retrieve the list of clients indirectly, by first
* asking for a list of all ports, then parsing the port names
* according to the client_name:port_name convention (which is
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs