summaryrefslogtreecommitdiff
path: root/source3/printing/pcap.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-19 13:06:14 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-19 13:06:14 +0200
commitf0c4829e827210e6f58885994e18f77f9afc3b8c (patch)
treee3dc275e48331b89add00fddeae2d89d1dc7b93d /source3/printing/pcap.c
parent58b4efc9b49c1cc366303a306639a3fc9321dcfe (diff)
downloadsamba-f0c4829e827210e6f58885994e18f77f9afc3b8c.tar.gz
samba-f0c4829e827210e6f58885994e18f77f9afc3b8c.tar.bz2
samba-f0c4829e827210e6f58885994e18f77f9afc3b8c.zip
Remove silly safe_free() function which is a wrapper around SAFE_FREE().
Since it's a function it just sets the local pointer to NULL and basically is an equivalent to free(). It also claims it's being used for callbacks but isn't used that way anywhere.
Diffstat (limited to 'source3/printing/pcap.c')
-rw-r--r--source3/printing/pcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/pcap.c b/source3/printing/pcap.c
index b9e5ad56ad..a6bf52a0a4 100644
--- a/source3/printing/pcap.c
+++ b/source3/printing/pcap.c
@@ -179,7 +179,7 @@ void pcap_cache_reload(void)
goto done;
}
- for (; (pcap_line = fgets_slash(NULL, 1024, pcap_file)) != NULL; safe_free(pcap_line)) {
+ for (; (pcap_line = fgets_slash(NULL, 1024, pcap_file)) != NULL; free(pcap_line)) {
char name[MAXPRINTERLEN+1];
char comment[62];
char *p, *q;