Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

libpcp_pmda: Fixed a memory leak detected by valgrind. #21

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Split
@@ -213,7 +213,7 @@ __pmdaMainPDU(pmdaInterface *dispatch)
/* Not INTERFACE_4 or later */
sts = PM_ERR_NAME;
}
- __pmUnpinPDUBuf(namelist);
+ free(namelist);
}
if (sts < 0)
__pmSendError(pmda->e_outfd, FROM_ANON, sts);