[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
2016-07-23 3:10 GMT-07:00 Christos Zoulas <christos%astron.com@localhost>:
> In article <
> Charles Cui <charles.cui1984%gmail.com@localhost> wrote:
> >Hi Christos,
> >Here is a improved patch based on your code review,
> >I will send you the signal test later once I am ready.
> That looks good. Did you mean to goto discard; instead of goto out;?
I considered about this, it seems that if the variable kp is successfully
we need to goto out to free kp first (which prevents memory leak).
But if we never allocate the variable kp, and encountered an error,
we need to goto discard, which does not free kp.
Main Index |
Thread Index |