diff options
author | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2012-09-23 12:14:28 +0000 |
---|---|---|
committer | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2012-09-23 12:14:28 +0000 |
commit | faffbaf71dbcb787d39f95fd0317c2e79117c75e (patch) | |
tree | 42f8ce222cd6f6607d0b1e12bb65ea11532b7d32 /programmer.h | |
parent | dd75e7651000321a753539c364ee74ce0e3c5b28 (diff) | |
download | flashrom-faffbaf71dbcb787d39f95fd0317c2e79117c75e.tar.gz |
Fix memleaks in dmi.c.
In dmi_init() we populate static char *dmistrings[] with values that get
later compared in dmi_match(). Those strings are actually strduped in
get_dmi_string() and hence need to be freed later. This patch accomplishes
this by registering another shutdown method. Also, the tangling pointers are
nulled when the memories are freed.
This bug was found thanks to valgrind.
Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1604 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'programmer.h')
0 files changed, 0 insertions, 0 deletions