Bug 2972 - lib/smbldap.c: free() on a "const char *"
Summary: lib/smbldap.c: free() on a "const char *"
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.0.20
Hardware: SGI IRIX
: P3 normal
Target Milestone: none
Assignee: Tim Potter
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-09 11:55 UTC by Jason Mader (mail bounces back)
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 (mail bounces back) 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 (mail bounces back) 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 2006-06-23 01:00:42 UTC
Fixed in 16483 by applying -woff 1209.