[issue9456] Apparent memory leak in PC/bdist_wininst/install.c

Zachary Blair report at bugs.python.org
Mon Aug 2 22:45:43 CEST 2010


New submission from Zachary Blair <zachary.blair at gmail.com>:

>From inspecting the code in install.c's DeleteRegistryValue() and DeleteRegistryKey() functions, it appears as though there can be a small memory leak in the event that either function is passed an invalid argument.

This patch corrects this issue by making sure to free any allocated memory before returning, even when an invalid argument is passed in.

----------
components: Windows
files: install_c.diff
keywords: patch
messages: 112541
nosy: Zachary.Blair
priority: normal
severity: normal
status: open
title: Apparent memory leak in PC/bdist_wininst/install.c
versions: Python 3.1
Added file: http://bugs.python.org/file18331/install_c.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9456>
_______________________________________


More information about the Python-bugs-list mailing list