regedit: Remove NULL check before HeapFree (Smatch).
Michael Stefaniuc
mstefani at redhat.de
Tue Nov 25 03:12:56 CST 2008
---
programs/regedit/regproc.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/programs/regedit/regproc.c b/programs/regedit/regproc.c
index c1aee21..ab422bb 100644
--- a/programs/regedit/regproc.c
+++ b/programs/regedit/regproc.c
@@ -993,8 +993,7 @@ static void REGPROC_export_binary(WCHAR **line_buf, DWORD *line_buf_size, DWORD
}
}
lstrcpyW(*line_buf + data_pos, newline);
- if (value_multibyte)
- HeapFree(GetProcessHeap(), 0, value_multibyte);
+ HeapFree(GetProcessHeap(), 0, value_multibyte);
}
/******************************************************************************
--
1.6.0.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081125/50dd8285/attachment.pgp
More information about the wine-patches
mailing list