On Wed, Sep 5, 2012 at 7:33 AM, Brian Paul wrote:
> On 09/05/2012 12:42 AM, Matt Turner wrote:
>>
>> This patch has been generated by the following Coccinelle semantic
>> patch:
>>
>> // Remove useless checks for NULL before freeing
>> //
>> // free (NULL) is a no-op, so there is no need to avoid
On 09/05/2012 08:33 AM, Brian Paul wrote:
On 09/05/2012 12:42 AM, Matt Turner wrote:
This patch has been generated by the following Coccinelle semantic
patch:
// Remove useless checks for NULL before freeing
//
// free (NULL) is a no-op, so there is no need to avoid it
@@
expression E;
@@
+ fr
On 09/05/2012 12:42 AM, Matt Turner wrote:
This patch has been generated by the following Coccinelle semantic
patch:
// Remove useless checks for NULL before freeing
//
// free (NULL) is a no-op, so there is no need to avoid it
@@
expression E;
@@
+ free (E);
+ E = NULL;
- if (unlikely (E != NU
This patch has been generated by the following Coccinelle semantic
patch:
// Remove useless checks for NULL before freeing
//
// free (NULL) is a no-op, so there is no need to avoid it
@@
expression E;
@@
+ free (E);
+ E = NULL;
- if (unlikely (E != NULL)) {
- free(E);
(
- E = NULL;
|
- E =