From 09652dc71ce13bd305e653557e43731378398dd6 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 28 Aug 2006 02:29:36 +0000 Subject: r17867: Fix null deref in error code path. Found by the Stanford checker. Jeremy. --- source/registry/reg_objects.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/registry') diff --git a/source/registry/reg_objects.c b/source/registry/reg_objects.c index 2a898f01705..1bd3ac9bd91 100644 --- a/source/registry/reg_objects.c +++ b/source/registry/reg_objects.c @@ -182,6 +182,7 @@ REGISTRY_VALUE* dup_registry_value( REGISTRY_VALUE *val ) DEBUG(0,("dup_registry_value: memdup() failed for [%d] bytes!\n", val->size)); SAFE_FREE( copy ); + return NULL; } copy->size = val->size; } -- cgit