regedit: Fix a memory leak in export handling.
This commit is contained in:
parent
5defba1165
commit
92e9b1edcf
|
@ -1165,6 +1165,7 @@ BOOL export_registry_key(CHAR *file_name, CHAR *reg_key_name)
|
||||||
fclose(file);
|
fclose(file);
|
||||||
}
|
}
|
||||||
HeapFree(GetProcessHeap(), 0, reg_key_name);
|
HeapFree(GetProcessHeap(), 0, reg_key_name);
|
||||||
|
HeapFree(GetProcessHeap(), 0, val_name_buf);
|
||||||
HeapFree(GetProcessHeap(), 0, val_buf);
|
HeapFree(GetProcessHeap(), 0, val_buf);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue