gdb: remove unnecessary NULL checks before xfree
[deliverable/binutils-gdb.git] / gdb / exec.c
index 93dd157e583ee729d26081d0f7c7a6ce0793e4ff..14c77495a38f14629d9f67a2a41901d6c74a47ce 100644 (file)
@@ -648,8 +648,7 @@ build_section_table (struct bfd *some_bfd, struct target_section **start,
   unsigned count;
 
   count = bfd_count_sections (some_bfd);
-  if (*start)
-    xfree (* start);
+  xfree (*start);
   *start = XNEWVEC (struct target_section, count);
   *end = *start;
   bfd_map_over_sections (some_bfd, add_to_section_table, (char *) end);
This page took 0.026053 seconds and 4 git commands to generate.