diff options
Diffstat (limited to 'wiretap/pppdump.c')
-rw-r--r-- | wiretap/pppdump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/pppdump.c b/wiretap/pppdump.c index 32bf813870..3fae6245b2 100644 --- a/wiretap/pppdump.c +++ b/wiretap/pppdump.c @@ -269,7 +269,7 @@ pppdump_open(wtap *wth, int *err, gchar **err_info) if (file_seek(wth->fh, 5, SEEK_SET, err) == -1) return WTAP_OPEN_ERROR; - state = (pppdump_t *)g_malloc(sizeof(pppdump_t)); + state = g_new(pppdump_t, 1); wth->priv = (void *)state; state->timestamp = pntoh32(&buffer[1]); state->tenths = 0; |