Semantic patching with Coccinelle
Semantic patching with Coccinelle
Posted Feb 3, 2009 13:56 UTC (Tue) by robbe (guest, #16131)Parent article: Semantic patching with Coccinelle
I was a bit disheartened to see the example code transformed into code
that leaks (remember that memory reserved with alloca() is automatically
freed, malloc() does not have this property).
that leaks (remember that memory reserved with alloca() is automatically
freed, malloc() does not have this property).
All the while I was hoping to see a third run of the tool which added the
missing free() call before every return statement. Is that possible with
Coccinelle?