[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gprofng/32273] [mxv-pthreads] Fix three memory leaks
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug gprofng/32273] [mxv-pthreads] Fix three memory leaks |
Date: |
Fri, 18 Oct 2024 03:20:59 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=32273
--- Comment #2 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Vladimir Mezentsev
<vmezents@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d6a07eeabbadbf846da7d6841340fc589d9a57aa
commit d6a07eeabbadbf846da7d6841340fc589d9a57aa
Author: Ruud van der Pas <ruud.vanderpas@oracle.com>
Date: Wed Oct 16 16:12:06 2024 +0000
gprofng: fix a memory leak in the mxv-pthreads example
Fix a bug where the main program does not free the rows of
the matrix. The memory for thread_data_arguments is also
not released. In function check_results, the memory for the
marker vector is not released.
The usage of the verbose veriable has been extended to
print more messages.
gprofng/ChangeLog
2024-10-16 Ruud van der Pas <ruud.vanderpas@oracle.com>
PR 32273
PR 32274
* mxv-pthreads/src/main.c: add calls to free() to
release the memory allocated for array A and vector
marker. Improve the usage of the verbose variable.
* mxv-pthreads/src/manage_data.c: add a diagnostic
printf statement.
* mxv-pthreads/src/mydefs.h: adapt prototype to
match the changes in main.c.
--
You are receiving this mail because:
You are on the CC list for the bug.