From: John L. <mov...@us...> - 2001-07-28 19:20:30
|
Update of /cvsroot/oprofile/oprofile/dae In directory usw-pr-cvs1:/tmp/cvs-serv18817/dae Modified Files: opd_proc.c Log Message: fix introduced memleak Index: opd_proc.c =================================================================== RCS file: /cvsroot/oprofile/oprofile/dae/opd_proc.c,v retrieving revision 1.59 retrieving revision 1.60 diff -u -d -r1.59 -r1.60 --- opd_proc.c 2001/07/26 01:39:16 1.59 +++ opd_proc.c 2001/07/28 19:20:26 1.60 @@ -943,12 +943,14 @@ if (eip >= info.addr && eip < info.addr + info.size) { verbprintf("Sample from unprofilable module %s\n", name); opd_enter_invalid_module(name, &info); - return; - } + goto out; + } } mod++; name += strlen(name) + 1; } +out: + opd_free(module_names); } /** |