diff options
author | Simo Sorce <idra@samba.org> | 2001-09-17 11:48:29 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2001-09-17 11:48:29 +0000 |
commit | c0ef0e113e8d3117891b4b137f660ca3c4c6b1f0 (patch) | |
tree | b1a191b7c5b57921b1c3229ba8e672dcc2ce1338 /source3/utils/make_printerdef.c | |
parent | 2d6a3079b805a57f5618c97fff2adda77de934f4 (diff) | |
download | samba-c0ef0e113e8d3117891b4b137f660ca3c4c6b1f0.tar.gz samba-c0ef0e113e8d3117891b4b137f660ca3c4c6b1f0.tar.bz2 samba-c0ef0e113e8d3117891b4b137f660ca3c4c6b1f0.zip |
move to SAFE_FREE()
(This used to be commit 67db8f03c5c9e81e11b5f3276b50ee23e09a2659)
Diffstat (limited to 'source3/utils/make_printerdef.c')
-rw-r--r-- | source3/utils/make_printerdef.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source3/utils/make_printerdef.c b/source3/utils/make_printerdef.c index bfbf6fa499..47589984cc 100644 --- a/source3/utils/make_printerdef.c +++ b/source3/utils/make_printerdef.c @@ -154,8 +154,8 @@ static void lookup_strings(FILE *fichier) temp2=(char *)malloc(sizeof(pstring)); if(temp == NULL || temp2 == NULL) { - safe_free(temp); - safe_free(temp2); + SAFE_FREE(temp); + SAFE_FREE(temp2); fprintf(stderr,"lookup_strings: malloc fail !\n"); exit(1); } @@ -218,8 +218,8 @@ static void lookup_entry(FILE *fichier,char *chaine) temp2=(char *)malloc(sizeof(pstring)); if(temp == NULL || temp2 == NULL) { - safe_free(temp); - safe_free(temp2); + SAFE_FREE(temp); + SAFE_FREE(temp2); fprintf(stderr,"lookup_entry: malloc fail !\n"); exit(1); } @@ -276,9 +276,9 @@ static char *find_desc(FILE *fichier,char *text) long_desc=(char *)malloc(sizeof(pstring)); short_desc=(char *)malloc(sizeof(pstring)); if (!chaine || !long_desc || !short_desc) { - safe_free(chaine); - safe_free(long_desc); - safe_free(short_desc); + SAFE_FREE(chaine); + SAFE_FREE(long_desc); + SAFE_FREE(short_desc); fprintf(stderr,"find_desc: Unable to malloc memory\n"); exit(1); } @@ -307,7 +307,7 @@ static char *find_desc(FILE *fichier,char *text) if (!strcmp(text,long_desc)) found=1; } - free(chaine); + SAFE_FREE(chaine); if (!found || !crap) return(NULL); while(*crap==' ') crap++; pstrcpy(short_desc,crap); |