diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-08-19 08:03:28 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-08-19 08:03:28 +0000 |
commit | 1f7b1af63f346a69ef49d2e3826af3ce2a082790 (patch) | |
tree | 40ae5f3bf054bbf2aec3f5db80ca2c64bea899c8 /epan | |
parent | cc73e58f023d22dff9b60bfd4dd4f11c4c212166 (diff) |
remove g_malloc()
svn path=/trunk/; revision=15419
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-rtsp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-rtsp.c b/epan/dissectors/packet-rtsp.c index 37080ac18e..6879d9a1a1 100644 --- a/epan/dissectors/packet-rtsp.c +++ b/epan/dissectors/packet-rtsp.c @@ -1125,14 +1125,13 @@ process_rtsp_request(tvbuff_t *tvb, int offset, const guchar *data, while (url < lineend && !isspace(*url)) url++; /* Create a URL-sized buffer and copy contents */ - tmp_url = g_malloc(url - url_start + 1); + tmp_url = ep_alloc(url - url_start + 1); memcpy(tmp_url, url_start, url - url_start); tmp_url[url - url_start] = '\0'; /* Add URL to tree */ proto_tree_add_string(sub_tree, hf_rtsp_url, tvb, offset + (url_start - data), url - url_start, tmp_url); - g_free(tmp_url); } /* Read first line of a reply message */ |