From: Peter Johnson Date: Sat, 30 Dec 2006 02:45:39 +0000 (-0000) Subject: yasm_value_delete(): Check for NULL expr before attempting to delete it. X-Git-Tag: v0.6.0~65 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60167896e20e232da33d2b635ff409850bd30daf;p=yasm yasm_value_delete(): Check for NULL expr before attempting to delete it. svn path=/trunk/yasm/; revision=1722 --- diff --git a/libyasm/value.c b/libyasm/value.c index fa31f87d..5b1981c9 100644 --- a/libyasm/value.c +++ b/libyasm/value.c @@ -93,7 +93,8 @@ yasm_value_init_copy(yasm_value *value, const yasm_value *orig) void yasm_value_delete(yasm_value *value) { - yasm_expr_destroy((value)->abs); + if (value->abs) + yasm_expr_destroy(value->abs); value->abs = NULL; value->rel = NULL; }