Bug 2972 - lib/smbldap.c: free() on a "const char *"
lib/smbldap.c: free() on a "const char *"
Status: RESOLVED FIXED
Product: Samba 3.0
Classification: Unclassified
Component: Build environment
3.0.20
SGI IRIX
: P3 normal
: none
Assigned To: Tim Potter
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-08-09 11:55 UTC by Jason Mader
Modified: 2006-06-23 01:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Mader 2005-08-09 11:55:49 UTC
cc-1164 cc: WARNING File = lib/smbldap.c, Line = 270
  Argument of type "const char *" is incompatible with parameter of type "void *"
          .

                SAFE_FREE( list[i] );
                ^
Comment 1 Jason Mader 2005-08-09 11:56:53 UTC
SAFE_FREE expanded to:

do { if ((list[i]) != 0L) {free(list[i]); list[i]=0L;} } while(0);


In the function declared,
  void free_attr_list( const char **list )
Comment 2 James Peach (outdated mail address) 2006-06-23 01:00:42 UTC
Fixed in 16483 by applying -woff 1209.