returns. (The error returns shouldn't happen in practice, as the GLib
memory allocators never return a null pointer, they just abort the
program, but if we're going to be checking for failure and returning, we
should do the right thing anyway.)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12957
f5534014-38df-0310-8fa8-
9805f1628bb7
compr = tvb_memdup(tvb, offset, comprlen);
if (!compr) {
+ g_free(strm);
return NULL;
}
if(strmbuf == NULL) {
g_free(compr);
+ g_free(strm);
return NULL;
}