From: Arnaldo Carvalho de Melo
For the frequent idiom of:
free(ptr);
ptr = NULL;
Make it expect a pointer to the pointer being freed, so that it becomes
clear at first sight that the variable being freed is being modified.
Cc: Adrian Hunter
Cc: David Ahern
Cc: Frederic Weisbecker
Cc:
From: Arnaldo Carvalho de Melo a...@redhat.com
For the frequent idiom of:
free(ptr);
ptr = NULL;
Make it expect a pointer to the pointer being freed, so that it becomes
clear at first sight that the variable being freed is being modified.
Cc: Adrian Hunter adrian.hun...@intel.com
Cc:
2 matches
Mail list logo