summaryrefslogtreecommitdiffstats
path: root/source/utils/make_smbcodepage.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-12-26 08:32:30 +0000
committerJeremy Allison <jra@samba.org>2001-12-26 08:32:30 +0000
commit26e4c4099c61c7ba9f2153e56061bea9882553d9 (patch)
treeb68969a82c21508f28f511fc7263e5242351e47c /source/utils/make_smbcodepage.c
parent5e3491784277dd90180ef199d2fa258614958545 (diff)
downloadsamba-26e4c4099c61c7ba9f2153e56061bea9882553d9.tar.gz
samba-26e4c4099c61c7ba9f2153e56061bea9882553d9.tar.xz
samba-26e4c4099c61c7ba9f2153e56061bea9882553d9.zip
Get religion on using SAFE_FREE.
Jeremy.
Diffstat (limited to 'source/utils/make_smbcodepage.c')
-rw-r--r--source/utils/make_smbcodepage.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/utils/make_smbcodepage.c b/source/utils/make_smbcodepage.c
index 1bd3edc2631..46b0bf227bb 100644
--- a/source/utils/make_smbcodepage.c
+++ b/source/utils/make_smbcodepage.c
@@ -99,7 +99,7 @@ static int clean_data( char **buf, size_t *size)
newbuf_p += (strlen(newbuf_p) + 1);
}
- free(*buf);
+ SAFE_FREE(*buf);
*buf = newbuf;
return num_lines;
}
@@ -209,7 +209,7 @@ The maximum size I will believe is 100k.\n", prog_name, size);
{
fprintf(stderr, "%s: read failed for file %s. Error was %s.\n", prog_name,
input_file, strerror(errno));
- free((char *)buf);
+ SAFE_FREE((char *)buf);
fclose(fp);
exit(1);
}
@@ -303,7 +303,7 @@ definition file. File %s has %d.\n", prog_name, MAXCODEPAGELINES, input_file, nu
fclose(fp);
- free(orig_buf);
+ SAFE_FREE(orig_buf);
return 0;
}