]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/linuxapp/eal/eal_debug.c
pci: fix ioport support for uio_pci_generic on x86
[dpdk.git] / lib / librte_eal / linuxapp / eal / eal_debug.c
index 44fc4f338beabf96bfb3f2f8d934475fdda98317..907fbfa7b8dafe7d0640ceb25d242e3058ed75c1 100644 (file)
@@ -53,11 +53,17 @@ void rte_dump_stack(void)
 
        size = backtrace(func, BACKTRACE_SIZE);
        symb = backtrace_symbols(func, size);
+
+       if (symb == NULL)
+               return;
+
        while (size > 0) {
                rte_log(RTE_LOG_ERR, RTE_LOGTYPE_EAL,
                        "%d: [%s]\n", size, symb[size - 1]);
                size --;
        }
+
+       free(symb);
 }
 
 /* not implemented in this environment */