projects
/
gapil.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modifica da uso.
[gapil.git]
/
sources
/
getcap.c
diff --git
a/sources/getcap.c
b/sources/getcap.c
index 116f3cbbfbeb9f8bac1161cbac3724964ed3592b..ef26ace9364b02f0d2a4cdd46561d11437acfd06 100644
(file)
--- a/
sources/getcap.c
+++ b/
sources/getcap.c
@@
-26,7
+26,6
@@
*
* Usage: getcap -h give all info's
*
*
* Usage: getcap -h give all info's
*
- *
****************************************************************/
/*
* Include needed headers
****************************************************************/
/*
* Include needed headers
@@
-36,9
+35,9
@@
#include <stdlib.h> /* C standard library */
#include <unistd.h> /* unix standard library */
#include <stdio.h> /* standard I/O library */
#include <stdlib.h> /* C standard library */
#include <unistd.h> /* unix standard library */
#include <stdio.h> /* standard I/O library */
-#include <string.h> /*
string functions
*/
-#include <sys/types.h>
-#include <sys/capability.h>
+#include <string.h> /*
C strings library
*/
+#include <sys/types.h>
/* primitive system data types */
+#include <sys/capability.h>
/* need package libcap-dev */
/* Help printing routine */
void usage(void);
/* Help printing routine */
void usage(void);
@@
-110,6
+109,7
@@
int main(int argc, char *argv[])
printf("Capability: %s\n", string);
cap_free(capab);
printf("Capability: %s\n", string);
cap_free(capab);
+ cap_free(string);
return 0;
}
/*
return 0;
}
/*