[augeas-devel] [PATCH] Minor possible use of free'd memory bugfix

James Antill james.antill at redhat.com
Wed May 21 18:20:44 UTC 2008


# HG changeset patch
# User james at and.org
# Date 1211393645 14400
# Node ID f5da8dfd12c5b2bc6c5b8c9c238a1051da2121f4
# Parent  80b93f8f9ee17f64e489a2395dcad283d39de4e3
 Minor fix to not use bad memory.

diff --git a/src/hash.c b/src/hash.c
--- a/src/hash.c
+++ b/src/hash.c
@@ -964,6 +964,7 @@
 		    puts("out of memory");
 		    free((void *) key);
 		    free(val);
+                    break;
 		}
 
 		if (!hash_alloc_insert(h, key, val)) {

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20080521/c3e8d02a/attachment.sig>


More information about the augeas-devel mailing list