mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-05 23:31:21 +08:00
cp-demangle.c (java_demangle_v3): Don't try to release "demangled" if it is NULL.
* cp-demangle.c (java_demangle_v3): Don't try to release "demangled" if it is NULL. From-SVN: r51594
This commit is contained in:
parent
70d95bac49
commit
a8f55e51dc
@ -1,3 +1,8 @@
|
||||
2002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
|
||||
|
||||
* cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
|
||||
if it is NULL.
|
||||
|
||||
2002-03-27 DJ Delorie <dj@redhat.com>
|
||||
|
||||
* hex.c: Add documentation.
|
||||
|
@ -3846,7 +3846,11 @@ java_demangle_v3 (mangled)
|
||||
|
||||
free (cplus_demangled);
|
||||
|
||||
return_value = dyn_string_release (demangled);
|
||||
if (demangled)
|
||||
return_value = dyn_string_release (demangled);
|
||||
else
|
||||
return_value = NULL;
|
||||
|
||||
return return_value;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user