aboutsummaryrefslogtreecommitdiff
path: root/libiberty/cp-demangle.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2002-03-30 06:17:57 +0000
committerDJ Delorie <dj@redhat.com>2002-03-30 06:17:57 +0000
commitf2160d2bd1df14c041da3cb0415d5a04d4509745 (patch)
tree3f58b2ea2038aad650ea1514f4b31c88f7f4dc31 /libiberty/cp-demangle.c
parent03c7bc89c0a654961942db0fcbb17742ff789bdc (diff)
downloadgdb-f2160d2bd1df14c041da3cb0415d5a04d4509745.zip
gdb-f2160d2bd1df14c041da3cb0415d5a04d4509745.tar.gz
gdb-f2160d2bd1df14c041da3cb0415d5a04d4509745.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/cp-demangle.c')
-rw-r--r--libiberty/cp-demangle.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c
index 28d3641..a130fd8 100644
--- a/libiberty/cp-demangle.c
+++ b/libiberty/cp-demangle.c
@@ -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;
}