24 lines
534 B
Diff
24 lines
534 B
Diff
|
--- src/core/abi.cc.orig 2009-02-12 23:53:09.000000000 +0100
|
||
|
+++ src/core/abi.cc 2010-06-16 15:44:33.000000000 +0200
|
||
|
@@ -10,6 +10,7 @@
|
||
|
#include <unistd.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <dirent.h>
|
||
|
+#include <cstdlib>
|
||
|
|
||
|
__ID("@(#) $Id: mem.cc 1352 2006-05-27 23:54:13Z ezix $");
|
||
|
|
||
|
@@ -37,10 +38,10 @@
|
||
|
for(i=0; i<n; i++)
|
||
|
{
|
||
|
system.addCapability(namelist[i]->d_name);
|
||
|
- free(namelist[i]);
|
||
|
+ std::free(namelist[i]);
|
||
|
}
|
||
|
if(namelist)
|
||
|
- free(namelist);
|
||
|
+ std::free(namelist);
|
||
|
}
|
||
|
|
||
|
popd();
|