Fixed wrong use of acl_free()

This commit is contained in:
Thomas Schmitt 2009-03-21 22:59:06 +01:00
parent 5f2bde776b
commit 8eff065b5f
2 changed files with 6 additions and 6 deletions

View File

@ -59,9 +59,9 @@ int aaip_get_acl_text(char *path, char **text, int flag)
if(flag & (1 << 15)) {
if(*text != NULL)
#ifdef Libisofs_with_aaip_acL
acl_free(text);
acl_free(*text);
#else
free(text);
free(*text);
#endif
*text= NULL;
return(1);
@ -109,9 +109,9 @@ int aaip_get_acl_text(char *path, char **text, int flag)
(*text)[0]= 0;
if((*text)[0] == 0 || strcmp(*text, "\n") == 0) {
#ifdef Libisofs_with_aaip_acL
acl_free(text);
acl_free(*text);
#else
free(text);
free(*text);
#endif
*text= NULL;
return(2);

View File

@ -60,7 +60,7 @@ int aaip_get_acl_text(char *path, char **text, int flag)
if(flag & (1 << 15)) {
if(*text != NULL)
acl_free(text);
acl_free(*text);
*text= NULL;
return(1);
}
@ -93,7 +93,7 @@ int aaip_get_acl_text(char *path, char **text, int flag)
}
if(flag & (1 | 16)) {
if((*text)[0] == 0 || strcmp(*text, "\n") == 0) {
acl_free(text);
acl_free(*text);
*text= NULL;
return(2);
}