On 07/01/2012 02:37 PM, Lars-Peter Clausen wrote:
> On 06/30/2012 08:54 PM, Lars-Peter Clausen wrote:
>> [...]
>>
>> - new_sources = g_try_realloc(sources, sizeof(struct source) *
>> (num_sources - 1));
>> + new_pollfds = g_try_realloc(sources, sizeof(GPollFD) * num_sources);
>
> Ok, here is obviously a copy&paste error.
>
>> + if (!new_pollfds && num_sources > 0) {
>> + sr_err("session: %s: new_sources malloc failed", __func__);
>> + return SR_ERR_MALLOC;
>> + }
>> +
>> + new_sources = g_try_realloc(sources, sizeof(struct source) *
>> num_sources);
>
> And this line should have actually been in patch 1.
>
> Will fix these two in v2.
Lars,
What's the news on this? Do you want us to wait in applying these 4 patches?
--
Bert Vermeulen [email protected] email/xmpp
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel