diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-01-08 17:24:01 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-01-08 17:24:01 +0000 |
commit | a68f557e2752383750601c8504bcb8b29c377882 (patch) | |
tree | 956b40cb5d15e629235517affd870eac11460eed /wiretap | |
parent | a12038c8845f75b7b69d4a9dfcd6f2dc18bc6cf3 (diff) |
Use g_free instead of free so that I don't have to include <stdlib.h>
for just one function.
svn path=/trunk/; revision=165
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/wtap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wiretap/wtap.c b/wiretap/wtap.c index 1f5dac1334..0378e20855 100644 --- a/wiretap/wtap.c +++ b/wiretap/wtap.c @@ -1,6 +1,6 @@ /* wtap.c * - * $Id: wtap.c,v 1.4 1999/01/07 16:15:36 gram Exp $ + * $Id: wtap.c,v 1.5 1999/01/08 17:24:01 gram Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@verdict.uthscsa.edu> @@ -47,15 +47,15 @@ void wtap_close(wtap *wth) * But for now this will work. */ switch(wth->file_type) { case WTAP_FILE_PCAP: - free(wth->capture.pcap); + g_free(wth->capture.pcap); break; case WTAP_FILE_LANALYZER: - free(wth->capture.lanalyzer); + g_free(wth->capture.lanalyzer); break; case WTAP_FILE_NGSNIFFER: - free(wth->capture.ngsniffer); + g_free(wth->capture.ngsniffer); break; default: |