RE: [PATCH] DSPBRIDGE Memory leak when dynbase is loaded

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sergio,

>> @@ -1806,6 +1806,8 @@ loop_end:
>>  		if (syms->Find_Matching_Symbol
>>  			(syms, LOADER_DLLVIEW_ROOT) == NULL)
>>  			syms->Deallocate(syms, root);
>> +		if (root != NULL)
>> +			syms->Deallocate(syms, root);
>
>I would suggest a simpler check like this:
>
>		if (!syms->Find_Matching_Symbol(syms, LOADER_DLLVIEW_ROOT) ||
>									root)
>			syms->Deallocate(syms, root);
>

Thanks for your comments, I'll make some more changes and resend.

Regards,

Omar

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux