Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2026-02-12 17:25:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and      /work/SRC/openSUSE:Factory/.hwinfo.new.1977 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "hwinfo"

Thu Feb 12 17:25:31 2026 rev:201 rq:1330938 version:25.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes    2026-01-28 
15:08:47.110085669 +0100
+++ /work/SRC/openSUSE:Factory/.hwinfo.new.1977/hwinfo.changes  2026-02-12 
17:25:48.535324584 +0100
@@ -1,0 +2,31 @@
+Wed Feb 4 11:44:40 UTC 2026 - [email protected]
+
+- merge gh#openSUSE/hwinfo#176
+- fix compiler warnings (bsc#1257658)
+- 25.2
+
+--------------------------------------------------------------------
+Wed Feb 4 11:17:42 UTC 2026 - [email protected]
+
+- merge gh#openSUSE/hwinfo#174
+- docs: Updates source repository URL to GitHub(#131)
+
+--------------------------------------------------------------------
+Wed Feb 4 11:14:12 UTC 2026 - [email protected]
+
+- merge gh#openSUSE/hwinfo#173
+- fix: incorrect format specifier for sizeof in logging(#140)
+
+--------------------------------------------------------------------
+Wed Feb 4 11:13:22 UTC 2026 - [email protected]
+
+- merge gh#openSUSE/hwinfo#172
+- fix: file descriptor not closes after WLAN scan(#166)
+
+--------------------------------------------------------------------
+Wed Feb 4 11:11:34 UTC 2026 - [email protected]
+
+- merge gh#openSUSE/hwinfo#171
+- resolve memory leaks in net, monitor and hddb
+
+--------------------------------------------------------------------

Old:
----
  hwinfo-25.1.tar.xz

New:
----
  hwinfo-25.2.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ hwinfo.spec ++++++
--- /var/tmp/diff_new_pack.2v3dTG/_old  2026-02-12 17:25:49.359359542 +0100
+++ /var/tmp/diff_new_pack.2v3dTG/_new  2026-02-12 17:25:49.359359542 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           hwinfo
-Version:        25.1
+Version:        25.2
 %define lname  libhd%(echo "%version" | perl -pe 's{\\D.*}{}')
 Release:        0
 Summary:        Hardware Library

++++++ hwinfo-25.1.tar.xz -> hwinfo-25.2.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-25.1/VERSION new/hwinfo-25.2/VERSION
--- old/hwinfo-25.1/VERSION     2026-01-26 15:42:09.000000000 +0100
+++ new/hwinfo-25.2/VERSION     2026-02-04 12:44:40.000000000 +0100
@@ -1 +1 @@
-25.1
+25.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-25.1/changelog new/hwinfo-25.2/changelog
--- old/hwinfo-25.1/changelog   2026-01-26 15:42:09.000000000 +0100
+++ new/hwinfo-25.2/changelog   2026-02-04 12:44:40.000000000 +0100
@@ -1,3 +1,15 @@
+2026-02-04:    25.2
+       - merge gh#openSUSE/hwinfo#171
+       - resolve memory leaks in net, monitor and hddb
+       - merge gh#openSUSE/hwinfo#172
+       - fix: file descriptor not closes after WLAN scan(#166)
+       - merge gh#openSUSE/hwinfo#173
+       - fix: incorrect format specifier for sizeof in logging(#140)
+       - merge gh#openSUSE/hwinfo#174
+       - docs: Updates source repository URL to GitHub(#131)
+       - merge gh#openSUSE/hwinfo#176
+       - fix compiler warnings (bsc#1257658)
+
 2026-01-26:    25.1
        - merge gh#openSUSE/hwinfo#175
        - include package spec file in git repo
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-25.1/doc/hwinfo.8 new/hwinfo-25.2/doc/hwinfo.8
--- old/hwinfo-25.1/doc/hwinfo.8        2026-01-26 15:42:09.000000000 +0100
+++ new/hwinfo-25.2/doc/hwinfo.8        2026-02-04 12:44:40.000000000 +0100
@@ -121,5 +121,5 @@
 .SH "SEE ALSO"
 More documentation in /usr/share/doc/packages/hwinfo.
 .br
-Source repository: git://git.opensuse.org/projects/hwinfo.git.
+Source repository: [email protected]:openSUSE/hwinfo.git.
 .\"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-25.1/src/hd/hd.c new/hwinfo-25.2/src/hd/hd.c
--- old/hwinfo-25.1/src/hd/hd.c 2026-01-26 15:42:09.000000000 +0100
+++ new/hwinfo-25.2/src/hd/hd.c 2026-02-04 12:44:40.000000000 +0100
@@ -1833,7 +1833,7 @@
   if(!hd_data->flags.internal) {
   /* log debug & probe flags */
     if(hd_data->debug) {
-      ADD2LOG("libhd version %s%s (%s) [%ld]\n", HD_VERSION_STRING, getuid() ? 
"u" : "", HD_ARCH, sizeof (hd_data_t));
+      ADD2LOG("libhd version %s%s (%s) [%zu]\n", HD_VERSION_STRING, getuid() ? 
"u" : "", HD_ARCH, sizeof (hd_data_t));
     }
 
     ADD2LOG("using %s\n", hd_get_hddb_dir());
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-25.1/src/hd/hddb.c 
new/hwinfo-25.2/src/hd/hddb.c
--- old/hwinfo-25.1/src/hd/hddb.c       2026-01-26 15:42:09.000000000 +0100
+++ new/hwinfo-25.2/src/hd/hddb.c       2026-02-04 12:44:40.000000000 +0100
@@ -185,6 +185,8 @@
   for(m = modinfo, sl = file; sl; sl = sl->next) {
     if(sscanf(sl->str, "alias %255s %255s", alias, module) != 2) continue;
 
+    m->module = free_mem(m->module);
+    m->alias = free_mem(m->alias);
     m->module = new_str(module);
     m->alias = new_str(alias);
     m->type = mi_other;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-25.1/src/hd/monitor.c 
new/hwinfo-25.2/src/hd/monitor.c
--- old/hwinfo-25.1/src/hd/monitor.c    2026-01-26 15:42:09.000000000 +0100
+++ new/hwinfo-25.2/src/hd/monitor.c    2026-02-04 12:44:40.000000000 +0100
@@ -387,7 +387,11 @@
       case 0xfc:
         if(edid[i + 5]) {
           /* name entry is splitted some times */
-          str_printf(&name, -1, "%s%s", name ? " " : "", canon_str(edid + i + 
5, 0xd));
+          // Store canon_str result in temporary variable to ensure proper 
memory cleanup
+          char *tmp = canon_str(edid + i + 5, 0xd);
+          str_printf(&name, -1, "%s%s", name ? " " : "", tmp);
+          // Free temporary string to prevent memory leak
+          free_mem(tmp);
         }
         break;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-25.1/src/hd/net.c new/hwinfo-25.2/src/hd/net.c
--- old/hwinfo-25.1/src/hd/net.c        2026-01-26 15:42:09.000000000 +0100
+++ new/hwinfo-25.2/src/hd/net.c        2026-02-04 12:44:40.000000000 +0100
@@ -598,11 +598,21 @@
   phwaddr->cmd = ETHTOOL_GPERMADDR;
   phwaddr->size = MAX_ADDR_LEN;
 
-  if(!hd->unix_dev_name) return res;
+  if(!hd->unix_dev_name) {
+    free_mem(phwaddr);
+    return res;
+  }
 
-  if(strlen(hd->unix_dev_name) > sizeof ifr.ifr_name - 1) return res;
+  if(strlen(hd->unix_dev_name) > sizeof ifr.ifr_name - 1) {
+    free_mem(phwaddr);
+    return res;
+  }
 
-  if((fd = socket(PF_INET, SOCK_DGRAM, 0)) == -1) return res;
+  if((fd = socket(PF_INET, SOCK_DGRAM, 0)) == -1) {
+    // Free allocated memory before early return to prevent memory leak
+    free_mem(phwaddr);
+    return res;
+  }
 
   /* get permanent hardware addr */
   memset(&ifr, 0, sizeof ifr);
@@ -635,6 +645,7 @@
   }
 
   close(fd);
+  free_mem(phwaddr);
 
   return res;
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-25.1/src/hd/usb.c new/hwinfo-25.2/src/hd/usb.c
--- old/hwinfo-25.1/src/hd/usb.c        2026-01-26 15:42:09.000000000 +0100
+++ new/hwinfo-25.2/src/hd/usb.c        2026-02-04 12:44:40.000000000 +0100
@@ -551,7 +551,7 @@
 
   ADD2LOG(
     "  input: name = %s, path = %s\n",
-    sf_cdev_name,
+    sf_cdev_name ?: "",
     hd_sysfs_id(name)
   );
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-25.1/src/hd/wlan.c 
new/hwinfo-25.2/src/hd/wlan.c
--- old/hwinfo-25.1/src/hd/wlan.c       2026-01-26 15:42:09.000000000 +0100
+++ new/hwinfo-25.2/src/hd/wlan.c       2026-02-04 12:44:40.000000000 +0100
@@ -193,5 +193,7 @@
       add_res_entry(&hd->res, res);
     }
   }
+
+  close(skfd);
 }
 #endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-25.1/src/isdn/cdb/isdn_cdb.c 
new/hwinfo-25.2/src/isdn/cdb/isdn_cdb.c
--- old/hwinfo-25.1/src/isdn/cdb/isdn_cdb.c     2026-01-26 15:42:09.000000000 
+0100
+++ new/hwinfo-25.2/src/isdn/cdb/isdn_cdb.c     2026-02-04 12:44:40.000000000 
+0100
@@ -160,9 +160,7 @@
        return(0);
 }
 
-int main(argc,argv)
-int argc;
-char **argv;
+int main(int argc, char **argv)
 {
        char    line[256];
        int     l;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-25.1/src/isdn/cdb/isdn_cdb.lex 
new/hwinfo-25.2/src/isdn/cdb/isdn_cdb.lex
--- old/hwinfo-25.1/src/isdn/cdb/isdn_cdb.lex   2026-01-26 15:42:09.000000000 
+0100
+++ new/hwinfo-25.2/src/isdn/cdb/isdn_cdb.lex   2026-02-04 12:44:40.000000000 
+0100
@@ -4,6 +4,7 @@
 %START Main NextLine NewEntry Value
 
 %{
+#pragma GCC diagnostic ignored "-Wunused-function"
 #include "isdn_cdb_def.h"
 %}
 %%
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-25.1/src/isdn/cdb/mk_isdnhwdb.c 
new/hwinfo-25.2/src/isdn/cdb/mk_isdnhwdb.c
--- old/hwinfo-25.1/src/isdn/cdb/mk_isdnhwdb.c  2026-01-26 15:42:09.000000000 
+0100
+++ new/hwinfo-25.2/src/isdn/cdb/mk_isdnhwdb.c  2026-02-04 12:44:40.000000000 
+0100
@@ -196,9 +196,7 @@
        return(0);
 }
 
-int main(argc,argv)
-int argc;
-char **argv;
+int main(int argc, char **argv)
 {
        char    line[256];
        int     l;

Reply via email to