Revision 7267c094 slirp/tftp.c

b/slirp/tftp.c
37 37

  
38 38
static void tftp_session_terminate(struct tftp_session *spt)
39 39
{
40
    qemu_free(spt->filename);
40
    g_free(spt->filename);
41 41
    spt->slirp = NULL;
42 42
}
43 43

  
......
54 54

  
55 55
    /* sessions time out after 5 inactive seconds */
56 56
    if ((int)(curtime - spt->timestamp) > 5000) {
57
        qemu_free(spt->filename);
57
        g_free(spt->filename);
58 58
        goto found;
59 59
    }
60 60
  }
......
287 287

  
288 288
  /* prepend tftp_prefix */
289 289
  prefix_len = strlen(slirp->tftp_prefix);
290
  spt->filename = qemu_malloc(prefix_len + TFTP_FILENAME_MAX + 2);
290
  spt->filename = g_malloc(prefix_len + TFTP_FILENAME_MAX + 2);
291 291
  memcpy(spt->filename, slirp->tftp_prefix, prefix_len);
292 292
  spt->filename[prefix_len] = '/';
293 293

  

Also available in: Unified diff