diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-08-19 08:03:28 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-08-19 08:03:28 +0000 |
commit | fde16550b16a16adad15b18a5e23fdeef45c1e29 (patch) | |
tree | 40ae5f3bf054bbf2aec3f5db80ca2c64bea899c8 /epan/dissectors/packet-rtsp.c | |
parent | 5265609ef48bc82b9965f881a06cc920169cb9c5 (diff) |
remove g_malloc()
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15419 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-rtsp.c')
-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 */ |