Module Name: src
Committed By: uwe
Date: Tue Apr 18 06:39:54 UTC 2017
Modified Files:
src/sys/lib/libsa: loadfile_elf32.c
Log Message:
Move deallocation of shstrsz inside the block where it is allocated.
To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/sys/lib/libsa/loadfile_elf32.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/lib/libsa/loadfile_elf32.c
diff -u src/sys/lib/libsa/loadfile_elf32.c:1.38 src/sys/lib/libsa/loadfile_elf32.c:1.39
--- src/sys/lib/libsa/loadfile_elf32.c:1.38 Mon Apr 17 18:06:30 2017
+++ src/sys/lib/libsa/loadfile_elf32.c Tue Apr 18 06:39:54 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: loadfile_elf32.c,v 1.38 2017/04/17 18:06:30 uwe Exp $ */
+/* $NetBSD: loadfile_elf32.c,v 1.39 2017/04/18 06:39:54 uwe Exp $ */
/*
* Copyright (c) 1997, 2008 The NetBSD Foundation, Inc.
@@ -571,10 +571,8 @@ ELFNAMEEND(loadfile)(int fd, Elf_Ehdr *e
PROGRESS(("]"));
}
DEALLOC(shp, sz);
- }
-
- if (shstr) {
- DEALLOC(shstr, shstrsz);
+ if (shstr)
+ DEALLOC(shstr, shstrsz);
}
/*