close the file on error.

===================================================================
--- services/amfcomp.c  (revision 1668)
+++ services/amfcomp.c  (working copy)
@@ -1558,6 +1558,7 @@

                        pm = amf_calloc(1, sizeof(struct amf_pm));
                        if ( pm == NULL ) {
+                               fclose (p);
                                return;
                        }
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to