Fixed wrong use of acl_free()

release-1.5.4.branch
Thomas Schmitt 14 years ago
parent 5f2bde776b
commit 8eff065b5f
  1. 8
      libisofs/aaip-os-freebsd.c
  2. 4
      libisofs/aaip-os-linux.c

@ -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);

@ -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);
}

Loading…
Cancel
Save